Skip to content

Commit 810649a

Browse files
committed
catch only error exceptions
1 parent dea9450 commit 810649a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nimbus_verified_proxy/rpc/blocks.nim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ proc walkBlocks(
8989
let blk =
9090
try:
9191
await vp.rpcClient.eth_getBlockByHash(nextHash, false)
92-
except:
93-
return
94-
err("Couldn't get block " & $nextHash & " during the chain traversal")
92+
except CatchableError as e:
93+
return err(
94+
"Couldn't get block " & $nextHash & " during the chain traversal: " & e.msg
95+
)
9596

9697
trace "getting next block",
9798
hash = nextHash,

0 commit comments

Comments
 (0)