فهرست منبع

Merged in codeZonkey/flatcam (pull request #78)

Fix issue #248 where set_sys command returned failure feedback even on command success.
MARCO A QUEZADA 7 سال پیش
والد
کامیت
a7cb9e7801
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  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))