mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-03-21 20:51:27 +00:00
Fix exception handling
This commit is contained in:
committed by
Paul Robinson
parent
745458cdff
commit
e56974078a
@ -69,7 +69,7 @@ class TCPListener(IListener):
|
||||
tcp_stream = TrioTCPStream(stream)
|
||||
remote_host, remote_port = tcp_stream.get_remote_address()
|
||||
await self.handler(tcp_stream)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
logger.debug(f"Connection from {remote_host}:{remote_port} failed.")
|
||||
|
||||
listeners = await nursery.start(
|
||||
|
||||
Reference in New Issue
Block a user