mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Return False
in case of exception
CURA-11403
This commit is contained in:
parent
a463e51788
commit
e075409243
1 changed files with 2 additions and 2 deletions
|
@ -115,11 +115,11 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
self.setInformation(catalog.i18nc("@error:zip", "No permission to write the workspace here."))
|
self.setInformation(catalog.i18nc("@error:zip", "No permission to write the workspace here."))
|
||||||
Logger.error("No permission to write workspace to this stream.")
|
Logger.error("No permission to write workspace to this stream.")
|
||||||
return
|
return False
|
||||||
except EnvironmentError as e:
|
except EnvironmentError as e:
|
||||||
self.setInformation(catalog.i18nc("@error:zip", str(e)))
|
self.setInformation(catalog.i18nc("@error:zip", str(e)))
|
||||||
Logger.error("EnvironmentError when writing workspace to this stream: {err}".format(err=str(e)))
|
Logger.error("EnvironmentError when writing workspace to this stream: {err}".format(err=str(e)))
|
||||||
return
|
return False
|
||||||
mesh_writer.setStoreArchive(False)
|
mesh_writer.setStoreArchive(False)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue