Browse Source

Prevent config proc discovery crash with no dataset set

Closes #221
Michael Hanke 1 year ago
parent
commit
976ea31cd2
2 changed files with 1 additions and 2 deletions
  1. 0 1
      datalad_gooey/app.py
  2. 1 1
      datalad_gooey/param_widgets.py

+ 0 - 1
datalad_gooey/app.py

@@ -348,7 +348,6 @@ class GooeyApp(QObject):
             )),
         )
 
-
     @Slot(Interface, list)
     def _app_cmdexec_results_handler(self, cls, res):
         if cls != WTF:

+ 1 - 1
datalad_gooey/param_widgets.py

@@ -414,7 +414,7 @@ class CfgProcParamWidget(ChoiceParamWidget):
         super().__init__(parent=parent)
 
     def _init_gooey_from_other_params(self, spec: Dict) -> None:
-        if self.count() and 'dataset' not in spec:
+        if self.count() and spec.get('dataset', _NoValue) is _NoValue:
             # we have items and no context change is required
             return