Skip to content

Commit 78c5a0d

Browse files
Fix handling of SystemExit
1 parent 4b49c5b commit 78c5a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def run_and_show_expression(self, expression):
9898
except KeyboardInterrupt: # KeyboardInterrupt doesn't inherit from Exception.
9999
raise
100100
except SystemExit:
101-
return
101+
raise
102102
except BaseException as e:
103103
self._handle_exception(e)
104104
else:

0 commit comments

Comments
 (0)