Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions discovery-provider/src/tasks/cache_user_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ def refresh_user_ids(
)

bal_info = waudio_token.get_balance(derived_account)
if (
"error" in bal_info
and "code" in bal_info["error"]
and bal_info["error"]["code"] == -32602
):
# Error is 'Invalid param: could not find account'
# meaning that the token account does not exist
continue
associated_waudio_balance: str = bal_info["result"][
"value"
]["amount"]
Expand Down