mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Added error state for container state if serialization data is none
CURA-2359
This commit is contained in:
parent
db512d3b05
commit
d6e95d2734
1 changed files with 3 additions and 0 deletions
|
@ -349,6 +349,9 @@ class ContainerManager(QObject):
|
|||
except NotImplementedError:
|
||||
return { "status": "error", "message": "Unable to serialize container"}
|
||||
|
||||
if contents is None:
|
||||
return {"status": "error", "message": "Serialization returned None. Unable to write to file"}
|
||||
|
||||
with UM.SaveFile(file_url, "w") as f:
|
||||
f.write(contents)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue