Skip to content

Commit 14db25d

Browse files
committed
Fix pylint errors
1 parent c73c987 commit 14db25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

weercd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343

4444
class TimeoutException(Exception):
45-
pass
45+
"""Custom timeout exception."""
4646

4747

4848
@contextmanager
@@ -223,7 +223,7 @@ def recv(self, timeout):
223223
"""Receive messages and parse them."""
224224
try:
225225
msgs = self.conn.read(timeout)
226-
except Exception as exc:
226+
except Exception as exc: # pylint: disable=broad-except
227227
print(f"Error reading on socket: {exc}")
228228
self.read_error = True
229229
return

0 commit comments

Comments
 (0)