Skip to content

Commit db23799

Browse files
committed
changes type of caught error in fetching hashes
1 parent b5827c2 commit db23799

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/monitoring_tests/template_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def get_tx_hashes_by_block(cls, start_block: int, end_block: int) -> List[str]:
7171
# only successful transactions are filtered
7272
try:
7373
transactions = cls.web_3.eth.filter(filter_criteria).get_all_entries() # type: ignore
74-
except requests.exceptions.ConnectionError as except_err:
74+
except ValueError as except_err:
7575
cls.logger.error(
76-
"Connection error while fetching hashes: %s.",
76+
"ValueError while fetching hashes: %s.",
7777
str(except_err),
7878
)
7979
transactions = []

0 commit comments

Comments
 (0)