From 468e0815b31cf288b7051d01bbd53b4e190b3224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 13 Jan 2020 18:53:59 +0100 Subject: [PATCH] not a CatchableError --- beacon_chain/libp2p_backends_common.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/libp2p_backends_common.nim b/beacon_chain/libp2p_backends_common.nim index ea789e8fb..d8474dab8 100644 --- a/beacon_chain/libp2p_backends_common.nim +++ b/beacon_chain/libp2p_backends_common.nim @@ -188,7 +188,7 @@ proc sendErrorResponse(peer: Peer, let responseBytes = encodeErrorMsg(InvalidRequest, err.formatMsg("msg")) await stream.writeAllBytes(responseBytes) await stream.close() - except CatchableError as err: + except Exception as err: debug "Error during sendErrorResponse()", error = err.msg proc sendErrorResponse(peer: Peer, @@ -201,7 +201,7 @@ proc sendErrorResponse(peer: Peer, let responseBytes = encodeErrorMsg(ServerError, errMsg) await stream.writeAllBytes(responseBytes) await stream.close() - except CatchableError as err: + except Exception as err: debug "Error during sendErrorResponse()", error = err.msg proc sendNotificationMsg(peer: Peer, protocolId: string, requestBytes: Bytes) {.async} =