fix: Added a return statement in case of exception, preventing the execution

pull/30/head
Sami Mokaddem 2017-12-19 12:10:48 +01:00
parent 9cfaa587fb
commit 1f4b10ea7f
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ def handler_conversation(zmq_name, jsonevent):
jsonpost = jsonevent['Post']
except KeyError as e:
logger.error('Error in handler_conversation: {}'.format(e))
return
org = jsonpost['org_name']
categ = None
action = 'add'