Catch ValueError from nim-json-rpc

This commit is contained in:
Eric Mastro 2022-09-15 20:38:52 +10:00 committed by Eric Mastro
parent e0ac15b3ba
commit f8ba91a297
1 changed files with 4 additions and 0 deletions

View File

@ -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