mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
more debug if pip installs fail
This commit is contained in:
parent
080953760f
commit
1aaa8365d2
1 changed files with 7 additions and 8 deletions
|
@ -255,13 +255,12 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
|||
return
|
||||
|
||||
success, output = run_install(cmd)
|
||||
if not success:
|
||||
return
|
||||
|
||||
if success:
|
||||
try:
|
||||
__import__(module)
|
||||
return True
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
except (ImportError, ModuleNotFoundError) as err:
|
||||
io.tool_error(str(err))
|
||||
pass
|
||||
|
||||
io.tool_error(output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue