mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:49:00 +08:00
Return False
in case of exception
CURA-11403
This commit is contained in:
parent
a463e51788
commit
e075409243
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user