Skip to content

Commit

Permalink
Avoid progress bar update if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
MeirShpilraien committed Dec 10, 2023
1 parent de15edb commit 2eb4f1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RLTest/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,8 @@ def progressbar(self, num_elements):
if bar:
bar.update(i)
yield i
bar.update(num_elements)
if bar:
bar.update(num_elements)

def execute(self):
Env.RTestInstance = self
Expand Down

0 comments on commit 2eb4f1b

Please sign in to comment.