Skip to content

Commit

Permalink
Cosmetic: pylint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurker00 committed Jul 29, 2024
1 parent c69fc55 commit 1bc069a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/localtuya/core/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def error_json(self, number=None, payload=None):
try:
spayload = json.dumps(payload)
# spayload = payload.replace('\"','').replace('\'','')
except Exception:
except Exception: # pylint: disable=broad-except
spayload = '""'

vals = (error_codes[number], str(number), spayload)
Expand Down Expand Up @@ -1031,7 +1031,7 @@ async def exchange_quick(self, payload, recv_retries):

try:
await self.transport_write(enc_payload)
except Exception:
except Exception: # pylint: disable=broad-except
await self.close()
return None
while recv_retries:
Expand All @@ -1040,7 +1040,7 @@ async def exchange_quick(self, payload, recv_retries):
msg = await self.dispatcher.wait_for(seqno, payload.cmd)
# for 3.4 devices, we get the starting seqno with the SESS_KEY_NEG_RESP message
self.seqno = msg.seqno
except Exception:
except Exception: # pylint: disable=broad-except
msg = None
if msg and len(msg.payload) != 0:
return msg
Expand Down

0 comments on commit 1bc069a

Please sign in to comment.