diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-11-25 17:42:15 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-11-25 17:42:15 +0300 |
commit | 99c12de6b08604802bf121c405295d29cb9d66e6 (patch) | |
tree | 012aaa50d416c2c1349cda4b36532c746bf94bf8 /plugins/3MFWriter/ThreeMFWorkspaceWriter.py | |
parent | 09066f2744cd11852131b6678b2e141713c72deb (diff) | |
parent | 39acad87d916b32c98e852b9e14b6b76b0070852 (diff) |
Merge branch 'master' of github.com:Ultimaker/Cura into fix_grouping_below_build_plate
Diffstat (limited to 'plugins/3MFWriter/ThreeMFWorkspaceWriter.py')
-rw-r--r-- | plugins/3MFWriter/ThreeMFWorkspaceWriter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py index 69b1e51247..9f4ab8e5fa 100644 --- a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py +++ b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py @@ -92,6 +92,10 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter): self.setInformation(catalog.i18nc("@error:zip", "No permission to write the workspace here.")) Logger.error("No permission to write workspace to this stream.") return False + except EnvironmentError as e: + self.setInformation(catalog.i18nc("@error:zip", "The operating system does not allow saving a project file to this location or with this file name.")) + Logger.error("EnvironmentError when writing workspace to this stream: {err}".format(err = str(e))) + return False mesh_writer.setStoreArchive(False) return True |