Tox fixes, reduced to 3.9 only

This commit is contained in:
rospogrigio
2023-02-07 17:54:02 +01:00
parent d4af0f63f6
commit 6b9f3df555
2 changed files with 3 additions and 2 deletions

View File

@@ -925,7 +925,7 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
payload = payload.decode()
except Exception as ex:
self.debug("payload was not string type and decoding failed")
raise DecodeError("payload was not a string: %s", ex)
raise DecodeError("payload was not a string: %s" % ex)
# return self.error_json(ERR_JSON, payload)
if "data unvalid" in payload:

View File

@@ -176,7 +176,8 @@ disable=line-too-long,
dangerous-default-value,
unreachable,
unnecessary-pass,
broad-except
broad-except,
raise-missing-from
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option