Przeglądaj źródła

Fix issue #248 where set_sys command returned failure feedback even on command success.

mquezada 7 lat temu
rodzic
commit
cd28ff9fdd
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      tclCommands/TclCommandSetSys.py

+ 2 - 3
tclCommands/TclCommandSetSys.py

@@ -66,8 +66,7 @@ class TclCommandSetSys(TclCommand.TclCommand):
                 pass
 
             self.app.defaults[param] = value
-
             self.app.propagate_defaults()
-
-        self.raise_tcl_error("No such system parameter \"{}\".".format(param))
+        else:
+            self.raise_tcl_error("No such system parameter \"{}\".".format(param))