mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 04:52:31 +08:00
Update app/model_manager.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
588db3d4e7
commit
447b15b9a0
@ -110,7 +110,7 @@ class ModelFileManager:
|
|||||||
break
|
break
|
||||||
size = f.write(chunk)
|
size = f.write(chunk)
|
||||||
pbar.update(size)
|
pbar.update(size)
|
||||||
os.rename(tmp_path, save_path)
|
os.replace(tmp_path, save_path)
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Failed to download model: {e}")
|
logging.error(f"Failed to download model: {e}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user