From 1f29ce5ff5e305d4ce5c2126b2a7c4beb58244e6 Mon Sep 17 00:00:00 2001 From: Blazej Michalik Date: Thu, 6 May 2021 22:35:46 +0200 Subject: [PATCH] Ensure %recall does not show error after argument eval --- IPython/core/magics/history.py | 1 + 1 file changed, 1 insertion(+) 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