summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/pythonconsole/console.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/pythonconsole/console.py b/src/plugins/pythonconsole/console.py
index 5da0068e4..aa8f5a754 100644
--- a/src/plugins/pythonconsole/console.py
+++ b/src/plugins/pythonconsole/console.py
@@ -293,8 +293,7 @@ class PythonConsole(Gtk.ScrolledWindow): # pylint: disable=R0902
except SyntaxError:
exec(command, self.namespace) # pylint: disable=W0122
except: # pylint: disable=W0702
- if hasattr(sys, 'last_type') and \
- sys.last_type == SystemExit: # pylint: disable=E1101
+ if hasattr(sys, 'last_type') and sys.last_type == SystemExit: # pylint: disable=E1101
self.destroy()
else:
traceback.print_exc()