- wip
This commit is contained in:
@@ -112,6 +112,7 @@ class TclCommandCncjob(TclCommandSignaled):
|
||||
except KeyError:
|
||||
if muted is False:
|
||||
self.raise_tcl_error("Object name is missing")
|
||||
return "fail"
|
||||
else:
|
||||
return "fail"
|
||||
|
||||
@@ -130,6 +131,7 @@ class TclCommandCncjob(TclCommandSignaled):
|
||||
if obj.kind != 'geometry':
|
||||
if muted is False:
|
||||
self.raise_tcl_error('Expected GeometryObject, got %s %s.' % (str(name), type(obj)))
|
||||
return "fail"
|
||||
else:
|
||||
return
|
||||
|
||||
@@ -228,6 +230,7 @@ class TclCommandCncjob(TclCommandSignaled):
|
||||
if len(eval(args["toolchangexy"])) != 2:
|
||||
self.raise_tcl_error("The entered value for 'toolchangexy' needs to have the format x,y or "
|
||||
"in format (x, y) - no spaces allowed. But always two comma separated values.")
|
||||
return "fail"
|
||||
|
||||
args.pop('name', None)
|
||||
args.pop('las_power', None)
|
||||
@@ -238,13 +241,14 @@ class TclCommandCncjob(TclCommandSignaled):
|
||||
continue
|
||||
else:
|
||||
if args[arg] is None:
|
||||
print("None parameters: %s is None" % arg)
|
||||
self.app.log.error("None parameters: %s is None" % arg)
|
||||
if muted is False:
|
||||
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.')
|
||||
return "fail"
|
||||
else:
|
||||
return
|
||||
return "fail"
|
||||
|
||||
# HACK !!! Should be solved elsewhere!!!
|
||||
# default option for multidepth is False
|
||||
|
||||
Reference in New Issue
Block a user