From a52220c565aca2bb80887b7a1442e538235f8c4a Mon Sep 17 00:00:00 2001 From: Mehrtash Babadi Date: Thu, 12 Sep 2024 15:09:34 +0000 Subject: [PATCH] fix IPython import issue --- cellarium/cas/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellarium/cas/settings.py b/cellarium/cas/settings.py index f91a391..455429e 100644 --- a/cellarium/cas/settings.py +++ b/cellarium/cas/settings.py @@ -32,6 +32,6 @@ def is_interactive_environment() -> bool: shell = get_ipython().__class__.__name__ if shell in ["ZMQInteractiveShell", "TerminalInteractiveShell"]: return True - except NameError: + except (ModuleNotFoundError, NameError): pass return False