Skip to content

Commit f969dd8

Browse files
microblocks (#13)
1 parent 26f4847 commit f969dd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zilliqaetl/service/zilliqa_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
TXN_HASH_NOT_PRESENT = "Txn Hash not Present"
2525
TX_BLOCK_NO_TRANSACTIONS = "TxBlock has no transactions"
26+
NO_MICROBLOCKS = "Failed to get Microblock"
2627

2728
class ZilliqaService(object):
2829
def __init__(self, zilliqa_api):
@@ -52,7 +53,7 @@ def get_transactions(self, block_number):
5253
except APIError as e:
5354
if str(e) == TXN_HASH_NOT_PRESENT:
5455
return self.get_validated_transactions(block_number)
55-
if str(e) == TX_BLOCK_NO_TRANSACTIONS:
56+
if str(e) == TX_BLOCK_NO_TRANSACTIONS or str(e) == NO_MICROBLOCKS:
5657
return []
5758
raise e
5859

0 commit comments

Comments
 (0)