mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +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:
|
try:
|
||||||
__import__(module)
|
__import__(module)
|
||||||
return True
|
return True
|
||||||
except (ImportError, ModuleNotFoundError):
|
except (ImportError, ModuleNotFoundError, RuntimeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
cmd = get_pip_install(pip_install_cmd)
|
cmd = get_pip_install(pip_install_cmd)
|
||||||
|
@ -325,7 +325,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
try:
|
try:
|
||||||
__import__(module)
|
__import__(module)
|
||||||
return True
|
return True
|
||||||
except (ImportError, ModuleNotFoundError) as err:
|
except (ImportError, ModuleNotFoundError, RuntimeError) as err:
|
||||||
io.tool_error(str(err))
|
io.tool_error(str(err))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue