Skip to content

Commit

Permalink
Hotfix: monitor progress bug (onnx#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfowers authored and apsonawane committed Jan 15, 2025
1 parent dbf913d commit a10e798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/turnkeyml/tools/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def set_percent_progress(self, percent_progress: float):
if not isinstance(percent_progress, float):
raise ValueError(f"Input argument must be a float, got {percent_progress}")

self.progress_queue.put(percent_progress)
if self.progress_queue:
self.progress_queue.put(percent_progress)
self.percent_progress = percent_progress

# pylint: disable=unused-argument
Expand Down
2 changes: 1 addition & 1 deletion src/turnkeyml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.0.10"
__version__ = "4.0.11"

0 comments on commit a10e798

Please sign in to comment.