Change error to logger.

pull/793/head
Andrey 2023-05-31 17:30:10 +03:00
rodzic ee8d1cf457
commit c697aad609
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -282,9 +282,10 @@ def handle_historical_crawl(args: argparse.Namespace) -> None:
web3, list(addresses_set)
)
if len(addresses_deployment_blocks) == 0:
raise ValueError(
logger.error(
"No addresses found in the blockchain. Please check your addresses and try again"
)
return
end_block = min(addresses_deployment_blocks.values())
if start_block is None: