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