From 7e05062e810067e131fb82d1befc901b2db00aaf 2014-11-29 20:03:19 From: Min RK Date: 2014-11-29 20:03:19 Subject: [PATCH] Merge pull request #7060 from takluyver/i7054 Fix static analysis errors in IPython.core.formatters --- diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index 6d1d12b..e66d569 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -13,6 +13,7 @@ Inheritance diagram: import abc import inspect import sys +import traceback import types import warnings @@ -229,7 +230,7 @@ def warn_format_error(method, self, *args, **kwargs): """decorator for warning on failed format call""" try: r = method(self, *args, **kwargs) - except NotImplementedError as e: + except NotImplementedError: # don't warn on NotImplementedErrors return None except Exception: