avoid unnecessary error

This commit is contained in:
sliptonic
2022-02-11 08:53:31 -06:00
parent 1e33533539
commit b8162dfa28
2 changed files with 10 additions and 7 deletions

View File

@@ -348,11 +348,14 @@ class JobTemplateExport:
job.Stock.Height,
)
elif stockType == PathStock.StockType.CreateCylinder:
seHint = translate("Path_Job", "Cylinder: %.2f x %.2f") % (
seHint = translate("Path_Job:", "Cylinder: %.2f x %.2f") % (
job.Stock.Radius,
job.Stock.Height,
)
else:
elif stockType == PathStock.StockType.Unknown:
seHint = "-"
else: # Existing Solid
seHint = "-"
PathLog.error(translate("Path_Job", "Unsupported stock type"))
self.dialog.stockExtentHint.setText(seHint)