Skip to content

Commit 1b3b4e8

Browse files
fix for bpython#281
1 parent e9dce11 commit 1b3b4e8

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:
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)