mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
ruff fixes
This commit is contained in:
@@ -155,7 +155,8 @@ class TelnetServer:
|
||||
writer.close()
|
||||
await writer.wait_closed()
|
||||
except Exception:
|
||||
pass
|
||||
# No problem, we were disconnecting this client anyway.
|
||||
logger.debug("Exception while closing telnet client connection", exc_info=True)
|
||||
self._clients.clear()
|
||||
|
||||
def publish(self, spot: Spot):
|
||||
@@ -178,6 +179,7 @@ class TelnetServer:
|
||||
writer.write(encoded_line)
|
||||
await writer.drain()
|
||||
except Exception:
|
||||
logger.debug("Exception while writing to telnet client, assuming it disconnected", exc_info=True)
|
||||
disconnected_clients.add(writer)
|
||||
|
||||
# Clean up any disconnected connections caught during writing
|
||||
|
||||
Reference in New Issue
Block a user