Merge branch 'main' into CURA-10475_engineplugin

This commit is contained in:
Jelle Spijker 2023-09-05 07:05:57 +02:00
commit 43322ff249
No known key found for this signature in database
GPG key ID: 034D1C0527888B65
12 changed files with 117 additions and 95 deletions

View file

@ -241,9 +241,9 @@ 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 e:
except Exception as error:
Logger.logException("e", "Error writing zip file")
self.setInformation(catalog.i18nc("@error:zip", "Error writing 3mf file."))
self.setInformation(str(error))
return False
finally:
if not self._store_archive: