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:
Remco Burema 2019-10-29 17:45:19 +01:00
parent 7780d76eb6
commit 298eb27c7f
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 15 additions and 3 deletions

View file

@ -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: