From ff3a72209e5001eb8ecaec836ea4e6c8a80d09f7 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 27 Aug 2026 18:32:41 +0200 Subject: [PATCH] Avoid rebind of exception reference --- RNS/Identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index 988d3a43..64720151 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -201,7 +201,7 @@ class Identity: except Exception as e: RNS.log(f"Error while serializing and writing known destinations: {e}", RNS.LOG_ERROR) try: os.unlink(temp_file) - except Exception as e: RNS.log(f"Could not clean up temporary file {temp_file}: {e}", RNS.LOG_WARNING) + except Exception as exc: RNS.log(f"Could not clean up temporary file {temp_file}: {exc}", RNS.LOG_WARNING) raise e RNS.log(f"Saved known destinations to storage in {RNS.prettyshorttime(time.time()-save_start)}", RNS.LOG_DEBUG) if RNS.sl(RNS.LOG_DEBUG) else None