Return False in case of exception

CURA-11403
This commit is contained in:
c.lamboo 2024-02-20 15:07:48 +01:00
parent a463e51788
commit e075409243

View file

@ -115,11 +115,11 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
except PermissionError:
self.setInformation(catalog.i18nc("@error:zip", "No permission to write the workspace here."))
Logger.error("No permission to write workspace to this stream.")
return
return False
except EnvironmentError as e:
self.setInformation(catalog.i18nc("@error:zip", str(e)))
Logger.error("EnvironmentError when writing workspace to this stream: {err}".format(err=str(e)))
return
return False
mesh_writer.setStoreArchive(False)
return True