mirror of https://github.com/MISP/misp-dashboard
fix: Attribute 'Tag' in misp_json.Attributes does not contain the field 'Tag' anymore
parent
600a3f1192
commit
8e59307ab4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue