Skip to content

Commit

Permalink
fix: errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita P committed Dec 24, 2024
1 parent 33375bd commit 762364b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def set_balance_in_wei(address, balance):

try:
resp = web3.provider.make_request(provider, [address, hex(balance)])
log_string += f"ERR1: {provider}: {resp}; "
except ValueError as e:
log_string += f"ERR1: {provider}: {e.args[0].get('message')}, RESP: {resp}"
log_string += f"ERR12 {provider}: {e.args[0].get('message')}; "
if e.args[0].get("message") != f"Method {provider} is not supported":
raise e

Expand Down

0 comments on commit 762364b

Please sign in to comment.