mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-02-19 21:51:18 +01:00
Add extra logging to decrypt failure.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user