From 2a73291fa04a30a74cede7b8e0573a7fab2caa8d Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Sun, 1 Aug 2021 11:56:38 +0200 Subject: [PATCH] Fixed issue with on giving client ip and port to the intent handler --- jarvis/skills/intent_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/skills/intent_manager.py b/jarvis/skills/intent_manager.py index bfdfb17..5fb48a9 100644 --- a/jarvis/skills/intent_manager.py +++ b/jarvis/skills/intent_manager.py @@ -71,10 +71,10 @@ def handle(intent_name, data): # import the create_skill method from the skill using the skill module path create_skill_method = utils.import_method_from_string(module_path_str, "create_skill") - data = {'client_ip': data['client_ip'], 'client_port': data['client_port']} + skill_init_data = {'client_ip': data['client_ip'], 'client_port': data['client_port']} # create a new object of the right skill for the utterance - skill = create_skill_method(data) + skill = create_skill_method(skill_init_data) # import and call the handler method from the skill getattr(skill, handler_method_name)(data=data)