Update app/model_manager.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
yt-koike 2026-04-06 22:42:58 +09:00 committed by GitHub
parent 588db3d4e7
commit 447b15b9a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ class ModelFileManager:
break
size = f.write(chunk)
pbar.update(size)
os.rename(tmp_path, save_path)
os.replace(tmp_path, save_path)
return web.Response(status=200)
except Exception as e:
logging.error(f"Failed to download model: {e}")