From c697aad609af92c2303b2c07d4babdf15bb5f6cf Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 31 May 2023 17:30:10 +0300 Subject: [PATCH] Change error to logger. --- crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py index d83e41a0..85a3f078 100644 --- a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py +++ b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py @@ -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: