diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index e38c84d..67c124f 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2691,7 +2691,7 @@ class InteractiveShell(SingletonConfigurable): try: node = transformer.visit(node) except Exception: - warn("AST transformer %r threw an error. It will be unregistered.") + warn("AST transformer %r threw an error. It will be unregistered." % transformer) self.ast_transformers.remove(transformer) return node