From db859393223a4fb6769921e6e9bc781cb80f4fd4 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 27 Dec 2025 11:00:38 +0100 Subject: [PATCH] Restored rncp corrupt identity error indication --- RNS/Utilities/rncp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rncp.py b/RNS/Utilities/rncp.py index da55b82..682c9f7 100644 --- a/RNS/Utilities/rncp.py +++ b/RNS/Utilities/rncp.py @@ -57,7 +57,10 @@ def prepare_identity(identity_path): identity_path = RNS.Reticulum.identitypath+"/"+APP_NAME if os.path.isfile(identity_path): - identity = RNS.Identity.from_file(identity_path) + identity = RNS.Identity.from_file(identity_path) + if identity == None: + RNS.log(f"Could not load identity for rncp. The identity file at \"{identity_path}\" may be corrupt or unreadable.", RNS.LOG_ERROR) + RNS.exit(2) if identity == None: RNS.log("No valid saved identity found, creating new...", RNS.LOG_INFO)