Merge pull request #30 from mokaddem/fixConversation

fix: Added a return statement in case of exception, preventing the execution of unwanted code
pull/31/head
Sami Mokaddem 2018-01-16 08:41:11 +01:00 committed by GitHub
commit 70bddb359a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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'