Switched to .format() to not confuse pylint with translate.

This commit is contained in:
Markus Lampert
2017-09-24 15:42:13 -07:00
committed by Yorik van Havre
parent 14f6de974b
commit 18a3fc0580

View File

@@ -355,9 +355,9 @@ def CreateFromTemplate(job, template):
PathLog.error(translate('PathStock', 'Corrupted or incomplete size for creating a stock cylinder - ignoring size'))
return CreateCylinder(job, radius, height, placement)
PathLog.error(translate('PathStock', 'Unsupported stock type named %s'), stockType)
PathLog.error(translate('PathStock', 'Unsupported stock type named {}').format(stockType))
else:
PathLog.error(translate('PathStock', 'Unsupported PathStock template version %s'), template.get('version'))
PathLog.error(translate('PathStock', 'Unsupported PathStock template version {}').format(template.get('version')))
return None