Browse Source

Prevent crash with ignored progress trackers

Michael Hanke 1 year ago
parent
commit
07d89f5d74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      datalad_gooey/datalad_ui.py

+ 3 - 0
datalad_gooey/datalad_ui.py

@@ -105,6 +105,9 @@ class DataladQtUIBridge(QObject):
                 # for those
                 if t
             ]
+        if not progress:
+            # we have ignore a progress tracker and now we have nothing
+            return
         progress = sum(progress) / len(progress)
         # default range setup is 0..100
         self._progress_bar.setValue(progress * 100)