Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.delarago <joeydelarago@gmail.com>2022-05-31 17:29:56 +0300
committerj.delarago <joeydelarago@gmail.com>2022-05-31 17:30:11 +0300
commit29b645070475516484314cc846d63a38500f5ad3 (patch)
treeea34f3d887c9b7ab0183f77780c0521c2702740d /cura/CuraPackageManager.py
parent094c781b02c0d39f999757c5f1ed94b29de01f0c (diff)
Add some more information for the unhappy route and a message to inform the user.
CURA-6990
Diffstat (limited to 'cura/CuraPackageManager.py')
-rw-r--r--cura/CuraPackageManager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py
index 0cb18ccc92..720406fbc6 100644
--- a/cura/CuraPackageManager.py
+++ b/cura/CuraPackageManager.py
@@ -4,6 +4,7 @@ import os
from typing import Any, cast, Dict, List, Set, Tuple, TYPE_CHECKING, Optional
+from UM.Logger import Logger
from cura.CuraApplication import CuraApplication # To find some resource types.
from cura.Settings.GlobalStack import GlobalStack
@@ -70,9 +71,9 @@ class CuraPackageManager(PackageManager):
parsed_guid = XmlMaterialProfile.getMetadataFromSerialized(f.read(), "GUID")
if guid == parsed_guid:
return package_id
- continue
-
+ Logger.error("Could not find package_id for file: {} with GUID: {} ".format(file_name, guid))
+ return ""
def getMachinesUsingPackage(self, package_id: str) -> Tuple[List[Tuple[GlobalStack, str, str]], List[Tuple[GlobalStack, str, str]]]:
"""Returns a list of where the package is used