diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index f2fa9bb..4146656 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -76,7 +76,7 @@ def _valid_formatter(f): # anything that works with zero args should be okay try: inspect.getcallargs(f) - except TypeError: + except Exception: return False else: return True