handle failed install of hf-embed

This commit is contained in:
Paul Gauthier 2024-07-10 17:35:13 +01:00
parent ea89ca6eb5
commit 504a72b5cb
2 changed files with 14 additions and 7 deletions

View file

@ -190,6 +190,8 @@ def pip_install(args):
cmd += args
try:
subprocess.run(cmd)
res = subprocess.run(cmd)
except subprocess.CalledProcessError as e:
print(f"Error running pip download: {e}")
return res.returncode == 0