Fix exception handling

This commit is contained in:
Reza Ameli
2025-05-13 19:29:00 -04:00
committed by Paul Robinson
parent 745458cdff
commit e56974078a

View File

@ -69,7 +69,7 @@ class TCPListener(IListener):
tcp_stream = TrioTCPStream(stream) tcp_stream = TrioTCPStream(stream)
remote_host, remote_port = tcp_stream.get_remote_address() remote_host, remote_port = tcp_stream.get_remote_address()
await self.handler(tcp_stream) await self.handler(tcp_stream)
except Exception as e: except Exception:
logger.debug(f"Connection from {remote_host}:{remote_port} failed.") logger.debug(f"Connection from {remote_host}:{remote_port} failed.")
listeners = await nursery.start( listeners = await nursery.start(