Skip to content

Commit

Permalink
feat: add exc detail (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Sep 22, 2024
1 parent b05633e commit c1543b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dank_mids/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def decode_result(self, method: Optional[RPCEndpoint] = None, _caller = None) ->
if method in ["eth_call", "eth_blockNumber", "eth_getCode", "eth_getBlockByNumber", "eth_getTransactionReceipt", "eth_getTransactionCount", "eth_getBalance", "eth_chainId", "erigon_getHeaderByNumber"]:
try:
return msgspec.json.decode(self.result, type=typ)
except msgspec.ValidationError as e:
except (msgspec.ValidationError, TypeError) as e:
raise ValueError(
e,
f'method: {method} result: {msgspec.json.decode(self.result)}',
Expand Down

0 comments on commit c1543b9

Please sign in to comment.