mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Merge branch 'master' into doxygen_to_restructuredtext_comments
# Conflicts: # plugins/CuraEngineBackend/CuraEngineBackend.py # plugins/CuraEngineBackend/StartSliceJob.py
This commit is contained in:
commit
176919eee0
593 changed files with 241737 additions and 461418 deletions
|
@ -747,11 +747,15 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
|
||||
@staticmethod
|
||||
def _loadMetadata(file_name: str) -> Dict[str, Dict[str, Any]]:
|
||||
archive = zipfile.ZipFile(file_name, "r")
|
||||
result = dict() # type: Dict[str, Dict[str, Any]]
|
||||
try:
|
||||
archive = zipfile.ZipFile(file_name, "r")
|
||||
except zipfile.BadZipFile:
|
||||
Logger.logException("w", "Unable to retrieve metadata from {fname}: 3MF archive is corrupt.".format(fname = file_name))
|
||||
return result
|
||||
|
||||
metadata_files = [name for name in archive.namelist() if name.endswith("plugin_metadata.json")]
|
||||
|
||||
result = dict()
|
||||
|
||||
for metadata_file in metadata_files:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue