Skip to content

Commit 35546a8

Browse files
fix for #281
1 parent a634a29 commit 35546a8

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
@@ -554,7 +554,11 @@ def get_args(self):
554554

555555
try:
556556
f = self.get_object(func)
557-
except (AttributeError, NameError, SyntaxError):
557+
except:
558+
# another case of needing to catch every kind of error
559+
# since user code is run in the case of descriptors
560+
# XXX: Make sure you raise here if you're debugging the completion
561+
# stuff !
558562
return False
559563

560564
if inspect.isclass(f):

0 commit comments

Comments
 (0)