From b3c08719f9cd41a6e309c5538fd7d2f29dd6948e Mon Sep 17 00:00:00 2001 From: Edip YILDIZ Date: Mon, 21 Aug 2017 09:52:02 +0300 Subject: [PATCH] bugfix --- opt/ahenk/base/plugin/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opt/ahenk/base/plugin/plugin.py b/opt/ahenk/base/plugin/plugin.py index 01821ef..4bc59bc 100644 --- a/opt/ahenk/base/plugin/plugin.py +++ b/opt/ahenk/base/plugin/plugin.py @@ -114,7 +114,10 @@ class Plugin(threading.Thread): self.context.put('protocol', json.loads(item_obj.get_file_server())['protocol']) self.context.put('parameterMap', json.loads(item_obj.get_file_server())['parameterMap']) - task_data = json.loads(item_obj.get_parameter_map()) + if type(item_obj.get_parameter_map())==str: + task_data = json.loads(item_obj.get_parameter_map()) + elif type(item_obj.get_parameter_map())==dict: + task_data = item_obj.get_parameter_map() # check if mail send is actve or not and set mail params to context object.. plugins get mail params via context object self.context.set_mail_send(task_data['mailSend'] if 'mailSend' in task_data else False)