Tox fixes, reduced to 3.9 only
This commit is contained in:
@@ -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:
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user