From aeb18c4e41c045ccb0cc7953566fea10b5083ed6 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Mon, 15 Mar 2021 16:48:11 +0900 Subject: [PATCH] now wild `except:` --- libp2p/utility.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/utility.nim b/libp2p/utility.nim index 11c427d..de9b793 100644 --- a/libp2p/utility.nim +++ b/libp2p/utility.nim @@ -48,7 +48,7 @@ when defined(libp2p_agents_metrics): proc safeToLowerAscii*(s: string): Result[string, cstring] = try: ok(s.toLowerAscii()) - except: + except CatchableError: err("toLowerAscii failed") const