From 739fdd387e0bfc2abe26bd715683052e4d1b821d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 28 May 2026 23:26:59 +0200 Subject: [PATCH] Fixed known destinations persist regression on windows --- RNS/Identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index 941565fc..e519abad 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -218,7 +218,7 @@ class Identity: try: with open(temp_file,"wb") as file: umsgpack.dump(Identity.known_destinations.copy(), file) - os.rename(temp_file, RNS.Reticulum.storagepath+f"/known_destinations") + os.replace(temp_file, RNS.Reticulum.storagepath+f"/known_destinations") except Exception as e: RNS.log(f"Error while serializing and writing known destinations: {e}", RNS.LOG_ERROR)