Skip to content

Commit

Permalink
changes type of caught error in fetching hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed May 26, 2023
1 parent b5827c2 commit db23799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monitoring_tests/template_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def get_tx_hashes_by_block(cls, start_block: int, end_block: int) -> List[str]:
# only successful transactions are filtered
try:
transactions = cls.web_3.eth.filter(filter_criteria).get_all_entries() # type: ignore
except requests.exceptions.ConnectionError as except_err:
except ValueError as except_err:
cls.logger.error(
"Connection error while fetching hashes: %s.",
"ValueError while fetching hashes: %s.",
str(except_err),
)
transactions = []
Expand Down

0 comments on commit db23799

Please sign in to comment.