mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +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)
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user