Skip to content

Commit

Permalink
fix: Attribute 'Tag' in misp_json.Attributes does not contain the fie…
Browse files Browse the repository at this point in the history
…ld 'Tag' anymore
  • Loading branch information
mokaddem committed Feb 22, 2018
1 parent 600a3f1 commit 8e59307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmq_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def handler_attribute(zmq_name, jsonobj, hasAlreadyBeenContributed=False):
tags = []
for tag in jsonattr.get('Tag', []):
try:
tags.append(tag['Tag'])
tags.append(tag)
except KeyError:
pass
trendings_helper.addTrendingTags(tags, timestamp)
Expand Down

0 comments on commit 8e59307

Please sign in to comment.