mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-12 16:44:23 +00:00
Catch ValueError from nim-json-rpc
This commit is contained in:
parent
e0ac15b3ba
commit
f8ba91a297
@ -36,6 +36,10 @@ template convertError(body) =
|
||||
body
|
||||
except JsonRpcError as error:
|
||||
raiseProviderError(error.msg)
|
||||
# Catch all ValueErrors for now, at least until JsonRpcError is actually
|
||||
# raised. PR created: https://github.com/status-im/nim-json-rpc/pull/151
|
||||
except ValueError as error:
|
||||
raiseProviderError(error.msg)
|
||||
|
||||
# Provider
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user