mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
If package.json metadata file is missing from 3mf file output warning instead of error.
CURA-8610
This commit is contained in:
parent
0f12b012cf
commit
f9ea517e05
1 changed files with 3 additions and 0 deletions
|
@ -1255,8 +1255,11 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
try:
|
||||
package_metadata = json.loads(archive.open("Metadata/packages.json").read().decode("utf-8"))
|
||||
return package_metadata["packages"]
|
||||
except KeyError:
|
||||
Logger.warning("No package metadata was found in .3mf file.")
|
||||
except Exception:
|
||||
Logger.error("Failed to load packes metadata from .3mf file")
|
||||
|
||||
return []
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue