Fix string formatting

This commit is contained in:
ChrisTerBeke 2019-07-30 18:04:16 +02:00
parent b7dfa11e69
commit c1b5cce064
6 changed files with 16 additions and 15 deletions

View file

@ -25,7 +25,7 @@ class ExportFileJob(WriteFileJob):
# Determine the filename.
job_name = CuraApplication.getInstance().getPrintInformation().jobName
extension = self._mesh_format_handler.preferred_format.get("extension", "")
self.setFileName(f"{job_name}.{extension}")
self.setFileName("{}.{}".format(job_name, extension))
## Get the mime type of the selected export file type.
def getMimeType(self) -> str: