diff --git a/libp2p/protocols/secure/secio.nim b/libp2p/protocols/secure/secio.nim index b92a3fcb6..6d91b788e 100644 --- a/libp2p/protocols/secure/secio.nim +++ b/libp2p/protocols/secure/secio.nim @@ -404,7 +404,7 @@ proc readLoop(sconn: SecureConnection, stream: BufferStream) {.async.} = try: let msg = await sconn.readMessage() await stream.pushTo(msg) - except CatchableError as exc: + except Exception as exc: trace "exception in secio", exc = exc.msg return finally: