mirror of https://github.com/MISP/misp-dashboard
Merge pull request #30 from mokaddem/fixConversation
fix: Added a return statement in case of exception, preventing the execution of unwanted codepull/31/head
commit
70bddb359a
|
@ -107,6 +107,7 @@ def handler_conversation(zmq_name, jsonevent):
|
||||||
jsonpost = jsonevent['Post']
|
jsonpost = jsonevent['Post']
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
logger.error('Error in handler_conversation: {}'.format(e))
|
logger.error('Error in handler_conversation: {}'.format(e))
|
||||||
|
return
|
||||||
org = jsonpost['org_name']
|
org = jsonpost['org_name']
|
||||||
categ = None
|
categ = None
|
||||||
action = 'add'
|
action = 'add'
|
||||||
|
|
Loading…
Reference in New Issue