From 50fac5d479878c1e7d9c2f4441a0928f0d2da65a 2017-04-10 21:10:15 From: Matthias Bussonnier Date: 2017-04-10 21:10:15 Subject: [PATCH] Merge pull request #10426 from jdemeyer/getargspec_except Ignore all exceptions in getargspec() --- diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 0b14027..ce419fc 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -907,7 +907,7 @@ class Inspector(Colorable): if callable_obj is not None: try: argspec = getargspec(callable_obj) - except (TypeError, AttributeError): + except Exception: # For extensions/builtins we can't retrieve the argspec pass else: