We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025fb31 commit 846f9a1Copy full SHA for 846f9a1
1 file changed
activity_browser/mod/tqdm/std.py
@@ -6,7 +6,11 @@
6
@patch_attribute(tqdm, "update")
7
def update(self, n=1):
8
patched[tqdm]["update"](self, n)
9
- qt_tqdm.updated.emit(int(self.n/self.total * 100), self.desc)
+ try:
10
+ qt_tqdm.updated.emit(int(self.n/self.total * 100), self.desc)
11
+ except (TypeError, ZeroDivisionError):
12
+ # Handle case where total is None or zero
13
+ pass
14
15
16
@patch_attribute(tqdm, "close")
0 commit comments