mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Add possibility to check material-profiles.
Needed to add the filename to deserialize, feels a bit unsafe as an optional parameter, will discuss tomorrow. part of CURA-6856
This commit is contained in:
parent
7780d76eb6
commit
298eb27c7f
3 changed files with 15 additions and 3 deletions
|
@ -247,7 +247,7 @@ class ContainerManager(QObject):
|
|||
|
||||
try:
|
||||
with open(file_url, "rt", encoding = "utf-8") as f:
|
||||
container.deserialize(f.read())
|
||||
container.deserialize(f.read(), file_url)
|
||||
except PermissionError:
|
||||
return {"status": "error", "message": "Permission denied when trying to read the file."}
|
||||
except ContainerFormatError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue