diff --git a/IPython/core/magics/history.py b/IPython/core/magics/history.py index 3b95ee7..bc1bfb9 100644 --- a/IPython/core/magics/history.py +++ b/IPython/core/magics/history.py @@ -282,6 +282,7 @@ class HistoryMagics(Magics): return else: self.shell.set_next_input(cmd.rstrip()) + return print("Couldn't evaluate or find in history:", arg) @line_magic