From c33b05128b7083364d8d343bdf5356d82789c3be Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Sat, 21 Sep 2024 14:31:53 +0400 Subject: [PATCH] Error handling for APY page --- eagleproject/core/blockchain/harvest/transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eagleproject/core/blockchain/harvest/transactions.py b/eagleproject/core/blockchain/harvest/transactions.py index de3765c..48894bd 100644 --- a/eagleproject/core/blockchain/harvest/transactions.py +++ b/eagleproject/core/blockchain/harvest/transactions.py @@ -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"])