From fd56f8ca635bb56555cc20457dde40b53fcd22db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sat, 26 May 2018 22:48:28 +0200 Subject: [PATCH] Make it impossible for TerminalCommands commands to kill TFW --- lib/tfw/components/terminal_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tfw/components/terminal_commands.py b/lib/tfw/components/terminal_commands.py index 7fa0eee..edaa16f 100644 --- a/lib/tfw/components/terminal_commands.py +++ b/lib/tfw/components/terminal_commands.py @@ -63,5 +63,5 @@ class TerminalCommands(ABC): if command in self.command_implemetations.keys(): try: self.command_implemetations[command](*parts[1:]) - except IndexError: - LOG.debug('Command "%s" failed!', command) + except Exception: # pylint: disable=broad-except + LOG.exception('Command "%s" failed:', command)