mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
commit to create package
CURA-10542
This commit is contained in:
parent
002af4eb81
commit
72448eec5b
1 changed files with 2 additions and 0 deletions
|
@ -295,10 +295,12 @@ class ThreeMFWriter(MeshWriter):
|
|||
archive.writestr(model_file, scene_string)
|
||||
archive.writestr(content_types_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(content_types))
|
||||
archive.writestr(relations_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(relations_element))
|
||||
|
||||
except Exception as error:
|
||||
Logger.logException("e", "Error writing zip file")
|
||||
self.setInformation(str(error))
|
||||
return False
|
||||
|
||||
finally:
|
||||
if not self._store_archive:
|
||||
archive.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue