Skip to content

Commit b6d05c5

Browse files
catch Exception instead to prevent catching SystemExit and KeyboardInterrupt
1 parent 1b3b4e8 commit b6d05c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def get_args(self):
517517

518518
try:
519519
f = self.get_object(func)
520-
except:
520+
except Exception:
521521
# another case of needing to catch every kind of error
522522
# since user code is run in the case of descriptors
523523
# XXX: Make sure you raise here if you're debugging the completion

0 commit comments

Comments
 (0)