diff --git a/fastlane_bot/events/event_gatherer.py b/fastlane_bot/events/event_gatherer.py index 9c7b67a33..30b7bf7f3 100644 --- a/fastlane_bot/events/event_gatherer.py +++ b/fastlane_bot/events/event_gatherer.py @@ -1,5 +1,4 @@ import asyncio -import traceback from itertools import chain from typing import Dict, List @@ -96,5 +95,5 @@ async def _get_logs_recursive(self, from_block: int, to_block: int, topics: List ) return [log for log_list in log_lists for log in log_list] else: - traceback.print_exc(e) - return [] + raise e + raise Exception(f"Illegal log query range: {from_block} -> {to_block}") diff --git a/run_blockchain_terraformer.py b/run_blockchain_terraformer.py index 259c93532..df514dbee 100644 --- a/run_blockchain_terraformer.py +++ b/run_blockchain_terraformer.py @@ -1,5 +1,4 @@ import math -import traceback from typing import Tuple, List, Dict import pandas as pd @@ -687,8 +686,8 @@ def get_events_recursive(get_logs: any, start_block: int, end_block: int) -> lis event_list_2 = get_events_recursive(get_logs, mid_block + 1, end_block) return event_list_1 + event_list_2 else: - traceback.print_exc(e) - return [] + raise e + raise Exception(f"Illegal log query range: {start_block} -> {end_block}") def get_uni_v3_pools(