- fixed issues in the 'millslots' and 'milldrills' Tcl commands for the case when some parameters are not used

This commit is contained in:
Marius Stanciu
2022-01-17 12:35:36 +02:00
committed by Marius
parent e63eaa6279
commit e18690baf0
5 changed files with 17 additions and 4 deletions

View File

@@ -135,6 +135,13 @@ class TclCommandMillSlots(TclCommandSignaled):
# args['milled_dias'] = [x.strip() for x in args['tools'].split(",")]
else:
args['tools'] = 'all'
# no longer needed
if 'milled_dias' in args:
del args['milled_dias']
if 'diatol' in args:
del args['diatol']
except Exception as e:
self.raise_tcl_error("Bad tools: %s" % str(e))