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