- fixed issue #313 where TclCommand drillcncjob is spitting errors in Tcl Shell which should be ignored

This commit is contained in:
Marius Stanciu
2019-09-17 02:58:01 +03:00
committed by Marius
parent bd0c1da007
commit fe97364ba5
4 changed files with 21 additions and 13 deletions

View File

@@ -101,13 +101,13 @@ class TclCommandCncjob(TclCommandSignaled):
obj = self.app.collection.get_by_name(str(name), isCaseSensitive=False)
if obj is None:
if not muted:
if muted == 0:
self.raise_tcl_error("Object not found: %s" % str(name))
else:
return
return "fail"
if not isinstance(obj, FlatCAMGeometry):
if not muted:
if muted == 0:
self.raise_tcl_error('Expected FlatCAMGeometry, got %s %s.' % (str(name), type(obj)))
else:
return
@@ -153,7 +153,7 @@ class TclCommandCncjob(TclCommandSignaled):
else:
if args[arg] is None:
print(arg, args[arg])
if not muted:
if muted == 0:
self.raise_tcl_error('One of the command parameters that have to be not None, is None.\n'
'The parameter that is None is in the default values found in the list \n'
'generated by the TclCommand "list_sys geom". or in the arguments.')