Skip to content

Commit 3139a7e

Browse files
authored
Don't explicitly compare with None
1 parent 7fdc628 commit 3139a7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tqdm/_tqdm_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def close(self, *args, **kwargs):
205205
super(tqdm_notebook, self).close(*args, **kwargs)
206206
# Try to detect if there was an error or KeyboardInterrupt
207207
# in manual mode: if n < total, things probably got wrong
208-
if self.total is not None and self.n < self.total:
208+
if self.total and self.n < self.total:
209209
self.sp(bar_style='danger')
210210
else:
211211
if self.leave:

0 commit comments

Comments
 (0)