This commit is contained in:
Mahan Noorbahr
2026-07-20 13:41:44 +08:00
committed by GitHub
+1
View File
@@ -396,6 +396,7 @@ class UserManager():
try:
with os.fdopen(fd, "wb") as f:
f.write(body)
os.chmod(tmp_path, 0o666)
os.replace(tmp_path, path)
except:
os.unlink(tmp_path)