mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-16 03:18:51 +08:00
Merge 8717b26698 into 3fe9f5fecb
This commit is contained in:
commit
9cb92b3ff2
@ -396,6 +396,7 @@ class UserManager():
|
|||||||
try:
|
try:
|
||||||
with os.fdopen(fd, "wb") as f:
|
with os.fdopen(fd, "wb") as f:
|
||||||
f.write(body)
|
f.write(body)
|
||||||
|
os.chmod(tmp_path, 0o666)
|
||||||
os.replace(tmp_path, path)
|
os.replace(tmp_path, path)
|
||||||
except:
|
except:
|
||||||
os.unlink(tmp_path)
|
os.unlink(tmp_path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user