diff --git a/core.py b/core.py index 5956aa6..87a53a7 100644 --- a/core.py +++ b/core.py @@ -142,7 +142,7 @@ def task(self, title, unit=None, length=None): self._step_queue.put(PoisonPill()) def task_it(self, title, iterator, unit=None, length=None): - if not length: + if length is None: length = len(iterator) if iterator else None self.task(title, unit=unit, length=length) for item in iterator: