diff --git a/dlt/common/runtime/collector.py b/dlt/common/runtime/collector.py index eec379564c..e478d713b2 100644 --- a/dlt/common/runtime/collector.py +++ b/dlt/common/runtime/collector.py @@ -194,8 +194,8 @@ def dump_counters(self) -> None: elapsed_time = current_time - info.start_time items_per_second = (count / elapsed_time) if elapsed_time > 0 else 0 - progress = f"{count}/{info.total}" if info.total is not None else f"{count}" - percentage = f"({count / info.total * 100:.1f}%)" if info.total is not None else "" + progress = f"{count}/{info.total}" if info.total else f"{count}" + percentage = f"({count / info.total * 100:.1f}%)" if info.total else "" elapsed_time_str = f"{elapsed_time:.2f}s" items_per_second_str = f"{items_per_second:.2f}/s" message = f"[{self.messages[name]}]" if self.messages[name] is not None else ""