From f9eed172d4a61f142e596f891f371ecf7c21b415 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 3 Dec 2019 01:24:35 +0200 Subject: [PATCH] Don't handle Exception --- 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 6d91b78..b92a3fc 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 Exception as exc: + except CatchableError as exc: trace "exception in secio", exc = exc.msg return finally: