We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e42f1 commit 3eb10ebCopy full SHA for 3eb10eb
bpython/cli.py
@@ -812,7 +812,7 @@ def p_key(self, key):
812
if obj is None and inspection.is_eval_safe_name(self.s):
813
obj = self.get_object(self.s)
814
source = inspect.getsource(obj)
815
- except (AttributeError, NameError, TypeError):
+ except (AttributeError, IOError, NameError, TypeError):
816
self.statusbar.message("Cannot show source.")
817
return ''
818
else:
0 commit comments