Skip to content

Commit 441354e

Browse files
committed
Merged in thomasballinger/bpython-for-clean-patch/0.13-bugfix (pull request bpython#55)
fix for bpython#281
2 parents 4a65c7b + b6d05c5 commit 441354e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bpython/repl.py

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

518518
try:
519519
f = self.get_object(func)
520-
except (AttributeError, NameError, SyntaxError):
520+
except Exception:
521+
# another case of needing to catch every kind of error
522+
# since user code is run in the case of descriptors
523+
# XXX: Make sure you raise here if you're debugging the completion
524+
# stuff !
521525
return False
522526

523527
if inspect.isclass(f):

0 commit comments

Comments
 (0)