mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fixes #1273
This commit is contained in:
parent
2d07a22bd0
commit
d629ff4a76
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue