- fixed a bug in milling holes due of a message wrongly formatted

This commit is contained in:
Marius Stanciu
2019-10-17 15:29:52 +03:00
parent e57b6ad082
commit 9f99520683
5 changed files with 49 additions and 107 deletions

View File

@@ -2813,10 +2813,13 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
for tool in tools:
if tooldia > self.tools[tool]["C"]:
self.app.inform.emit('[ERROR_NOTCL] %s %s: %s' % (
_("Milling tool for DRILLS is larger than hole size. Cancelled.",
str(tool))
))
self.app.inform.emit(
'[ERROR_NOTCL] %s %s: %s' % (
_("Milling tool for DRILLS is larger than hole size. Cancelled."),
_("Tool"),
str(tool)
)
)
return False, "Error: Milling tool is larger than hole."
def geo_init(geo_obj, app_obj):