From 3f65831566f440562e5bc0c715cb7f55dcd18dc5 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sat, 19 Oct 2024 17:17:18 +0200 Subject: [PATCH] [fix] Bad catch IPython missing --- src/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.py b/src/tools.py index 486f54aa90..07a3d67ede 100644 --- a/src/tools.py +++ b/src/tools.py @@ -588,7 +588,7 @@ def tools_shell(command=None): from IPython import embed embed() - except ImportError: + except (ImportError, ModuleNotFoundError): logger.warn( "You don't have IPython installed, consider installing it as it is way better than the standard shell." )