From 50b1eae380a791763c2f3daf245d6dbeb0151382 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 9 Sep 2024 02:11:46 +0200 Subject: [PATCH] File move fix for windows --- RNS/Identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index dbf6841..b2de82a 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -288,7 +288,7 @@ class Identity: ratchet_file = open(outpath, "wb") ratchet_file.write(umsgpack.packb(ratchet_data)) ratchet_file.close() - os.rename(outpath, finalpath) + os.replace(outpath, finalpath) threading.Thread(target=persist_job, daemon=True).start()