From 8e59307ab48c8677919427914e75217407cdae39 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 22 Feb 2018 09:45:33 +0100 Subject: [PATCH] fix: Attribute 'Tag' in misp_json.Attributes does not contain the field 'Tag' anymore --- zmq_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq_dispatcher.py b/zmq_dispatcher.py index b3dac2a..5af4ffd 100755 --- a/zmq_dispatcher.py +++ b/zmq_dispatcher.py @@ -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)