Fixing pylint error

This commit is contained in:
rospogrigio
2023-06-07 12:23:41 +02:00
parent 9d5984e4cf
commit ba5670fc1d

View File

@@ -953,7 +953,7 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
json_payload = json.loads(payload)
except Exception as ex:
raise DecodeError(
"could not decrypt data: wrong local_key? (exception %s)", ex
"could not decrypt data: wrong local_key? (exception: %s)" % ex
)
# json_payload = self.error_json(ERR_JSON, payload)