fix #4075
This commit is contained in:
@@ -223,7 +223,7 @@ class Console(QtWidgets.QPlainTextEdit):
|
|||||||
exec(command, self.namespace, self.namespace)
|
exec(command, self.namespace, self.namespace)
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
self.close()
|
self.close()
|
||||||
except Exception:
|
except BaseException:
|
||||||
traceback_lines = traceback.format_exc().split('\n')
|
traceback_lines = traceback.format_exc().split('\n')
|
||||||
# Remove traceback mentioning this file, and a linebreak
|
# Remove traceback mentioning this file, and a linebreak
|
||||||
for i in (3,2,1,-1):
|
for i in (3,2,1,-1):
|
||||||
|
|||||||
Reference in New Issue
Block a user