From 6d59762e2b0f94e3bcbeec1be486a860780b174a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 7 Mar 2018 11:37:52 +0100 Subject: [PATCH] Clean up confusing usage of data_json['data'] in TerminadoEventHandler --- lib/tfw/components/terminado_event_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tfw/components/terminado_event_handler.py b/lib/tfw/components/terminado_event_handler.py index 756d4db..4a8f98a 100644 --- a/lib/tfw/components/terminado_event_handler.py +++ b/lib/tfw/components/terminado_event_handler.py @@ -23,8 +23,7 @@ class TerminadoEventHandler(TriggerlessEventHandler): def handle_event(self, key, data_json): log.debug('TerminadoEventHandler received event: {}'.format(data_json)) - data = data_json['data'] - data_json['data'] = self.commands[data['command']](data) + data_json['data'] = self.commands[data_json['data']['command']](data_json['data']) return data_json def write(self, data):