Kaynağa Gözat

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

mquezada 7 yıl önce
ebeveyn
işleme
cd28ff9fdd
1 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  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))