From c83ca0f688c4aa0977a719986030e37c04ff9d91 Mon Sep 17 00:00:00 2001 From: Dmytro Samoylenko Date: Tue, 10 Dec 2024 15:36:22 +0000 Subject: [PATCH] fix scan results check --- app/block_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/block_scanner.py b/app/block_scanner.py index 036c55f..5b3d2e9 100644 --- a/app/block_scanner.py +++ b/app/block_scanner.py @@ -48,7 +48,7 @@ def __call__(self): f"Block chunk {blocks.start} - {blocks.stop - 1} processed for {time.time() - start_time} seconds" ) - if all(results): + if results and all(results): logger.debug( f"Commiting chunk {blocks.start} - {blocks.stop - 1}" )