fix: Attribute 'Tag' in misp_json.Attributes does not contain the field 'Tag' anymore

pull/37/head
Sami Mokaddem 2018-02-22 09:45:33 +01:00
parent 600a3f1192
commit 8e59307ab4
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def handler_attribute(zmq_name, jsonobj, hasAlreadyBeenContributed=False):
tags = [] tags = []
for tag in jsonattr.get('Tag', []): for tag in jsonattr.get('Tag', []):
try: try:
tags.append(tag['Tag']) tags.append(tag)
except KeyError: except KeyError:
pass pass
trendings_helper.addTrendingTags(tags, timestamp) trendings_helper.addTrendingTags(tags, timestamp)