mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-13 00:54:38 +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
|
body
|
||||||
except JsonRpcError as error:
|
except JsonRpcError as error:
|
||||||
raiseProviderError(error.msg)
|
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
|
# Provider
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user