Selaa lähdekoodia

Always take out the special args before configuring parameters

This is more important now, because the full spec is passed on to each
parameter.
Michael Hanke 1 vuosi sitten
vanhempi
commit
a0916ecb69
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 7 7
      datalad_gooey/dataladcmd_ui.py

+ 7 - 7
datalad_gooey/dataladcmd_ui.py

@@ -79,13 +79,13 @@ class GooeyDataladCmdUI(QObject):
                 api = sender.data().get('__api__')
             if cmdname is None:
                 cmdname = sender.data().get('__cmd_name__')
-                # pull in any signal-provided kwargs for the command
-                # unless they have been also specified directly to the method
-                cmdkwargs = {
-                    k: v for k, v in sender.data().items()
-                    if k not in ('__cmd_name__', '__api')
-                    and k not in cmdkwargs
-                }
+            # pull in any signal-provided kwargs for the command
+            # unless they have been also specified directly to the method
+            cmdkwargs = {
+                k: v for k, v in sender.data().items()
+                if k not in ('__cmd_name__', '__api__')
+                and k not in cmdkwargs
+            }
 
         assert cmdname is not None, \
             "GooeyDataladCmdUI.configure() called without command name"