diff --git a/gui/qt/console.py b/gui/qt/console.py index bde05a3df..2b49d93c6 100644 --- a/gui/qt/console.py +++ b/gui/qt/console.py @@ -223,7 +223,7 @@ class Console(QtWidgets.QPlainTextEdit): exec(command, self.namespace, self.namespace) except SystemExit: self.close() - except Exception: + except BaseException: traceback_lines = traceback.format_exc().split('\n') # Remove traceback mentioning this file, and a linebreak for i in (3,2,1,-1):