diff --git a/IPython/core/hooks.py b/IPython/core/hooks.py index 853f5f2..b0ac9aa 100644 --- a/IPython/core/hooks.py +++ b/IPython/core/hooks.py @@ -138,7 +138,7 @@ class CommandChainDispatcher: args = exc.args kw = exc.kwargs # if no function will accept it, raise TryNext up to the caller - raise TryNext + raise TryNext(*args, **kw) def __str__(self): return str(self.chain)