diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 82a5666..d77a732 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -417,7 +417,7 @@ class Inspector(Colorable): If any exception is generated, None is returned instead and the exception is suppressed.""" if not callable(obj): - return None + return None try: return _render_signature(signature(obj), oname) except: