From 1f4b10ea7f02f96e7606e69fde293175eb9637f0 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 19 Dec 2017 12:10:48 +0100 Subject: [PATCH] fix: Added a return statement in case of exception, preventing the execution --- zmq_dispatcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zmq_dispatcher.py b/zmq_dispatcher.py index 5e3b14c..b3dac2a 100755 --- a/zmq_dispatcher.py +++ b/zmq_dispatcher.py @@ -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'