From d629ff4a764d3ff76d8cbced58539128fb699933 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 31 Aug 2024 18:48:10 -0700 Subject: [PATCH] fixes #1273 --- aider/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index c44987438..a71df8727 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -307,7 +307,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd): try: __import__(module) return True - except (ImportError, ModuleNotFoundError): + except (ImportError, ModuleNotFoundError, RuntimeError): pass cmd = get_pip_install(pip_install_cmd) @@ -325,7 +325,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd): try: __import__(module) return True - except (ImportError, ModuleNotFoundError) as err: + except (ImportError, ModuleNotFoundError, RuntimeError) as err: io.tool_error(str(err)) pass