From 26366f8b56076e0ca575ea73a12c26750a742dfc Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 29 Nov 2019 14:30:58 -0600 Subject: [PATCH] use `Exception` to emulate `getCurrentException()` --- libp2p/protocols/secure/secio.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: