- fixed issue #313 where TclCommand drillcncjob is spitting errors in Tcl Shell which should be ignored
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user