From 447b15b9a07c36b6d4bdd6aa345e90c767bc5077 Mon Sep 17 00:00:00 2001 From: yt-koike <42059282+yt-koike@users.noreply.github.com> Date: Mon, 6 Apr 2026 22:42:58 +0900 Subject: [PATCH] Update app/model_manager.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/model_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model_manager.py b/app/model_manager.py index 09a80f58b..4af237581 100644 --- a/app/model_manager.py +++ b/app/model_manager.py @@ -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}")