From 32bfc2256f136f01e7da0131ac84e048800f539e Mon Sep 17 00:00:00 2001 From: Cossid Date: Sat, 6 Dec 2025 13:39:02 -0600 Subject: [PATCH] Add extra logging to decrypt failure. --- src/cloudcutter/protocol/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloudcutter/protocol/handlers.py b/src/cloudcutter/protocol/handlers.py index f40dccf..4261b82 100644 --- a/src/cloudcutter/protocol/handlers.py +++ b/src/cloudcutter/protocol/handlers.py @@ -213,7 +213,7 @@ class DetachHandler(TuyaServerHandler): body = self.get_argument('data') body = bytes.fromhex(body) decrypted = self.cipher.decrypt(body, key_choice).decode('utf-8') - except: - print(f"[!] Unable to decrypt device reponse. PSKKEY/AUTHKEY do not match device.") + except Exception as e: + print(f"[!] Unable to decrypt device reponse. PSKKEY/AUTHKEY do not match device - {e}") exit(90) return decrypted