fix: use "is not None" check for total_batches in ProgressTracker.batch

This commit is contained in:
2025-12-30 17:46:22 +01:00
parent 6785ecd45a
commit fd62bb5ea2

View File

@@ -15,7 +15,7 @@ class ProgressTracker:
def batch(self, batch_num: int, batch_size: int, total_batches: int | None = None): def batch(self, batch_num: int, batch_size: int, total_batches: int | None = None):
logger = logging.getLogger("skywipe.progress") logger = logging.getLogger("skywipe.progress")
if total_batches: if total_batches is not None:
logger.info( logger.info(
f"{self.operation} - batch {batch_num}/{total_batches} ({batch_size} items)" f"{self.operation} - batch {batch_num}/{total_batches} ({batch_size} items)"
) )