Skip to content

Commit

Permalink
[util] Bar.part_done: add missing self. to count
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsijm committed Feb 16, 2024
1 parent e39a870 commit 046e3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def done(self, success=True, message='', data=''):
# Log an intermediate line if it's an error or we're in verbose mode.
# Return True when something was printed
def part_done(self, success=True, message='', data='', warn_instead_of_error=False):
if not success and count:
if not success and self.count:
if warn_instead_of_error:
config.n_warn += 1
else:
Expand Down

0 comments on commit 046e3b5

Please sign in to comment.