mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-26 01:11:31 +00:00
Extract variable to silence retarded linter
This commit is contained in:
parent
efb8af4cd1
commit
743fab366b
@ -30,7 +30,8 @@ class TerminadoEventHandler(TriggerlessEventHandler):
|
||||
def handle_event(self, message):
|
||||
LOG.debug('TerminadoEventHandler received event: %s', message)
|
||||
try:
|
||||
message['data'] = self.commands[message['data']['command']](message['data'])
|
||||
data = message['data']
|
||||
message['data'] = self.commands[data['command']](data)
|
||||
return message
|
||||
except KeyError:
|
||||
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||
|
Loading…
Reference in New Issue
Block a user