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