Skip to content

Commit

Permalink
Error handling for APY page
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Sep 21, 2024
1 parent b72f1d2 commit c33b051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eagleproject/core/blockchain/harvest/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def ensure_all_transactions(block_number):
for tx in get_contract_transactions(
address, pointers[address].last_block, block_number
):
if tx.get("hash") is None:
if type(tx) == str or tx.get("hash") is None:
logger.error("No transaction hash found from Etherscan")
continue
tx_hashes.append(tx["hash"])
Expand Down

0 comments on commit c33b051

Please sign in to comment.