mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:49:10 +08:00
Right type is now returned if metadata entry is not found
CURA-2242
This commit is contained in:
parent
544941e33e
commit
d34f54a3c7
@ -172,7 +172,7 @@ class ContainerManager(QObject):
|
|||||||
containers = self._container_registry.findContainers(None, id=container_id)
|
containers = self._container_registry.findContainers(None, id=container_id)
|
||||||
if not containers:
|
if not containers:
|
||||||
UM.Logger.log("w", "Could not get metadata of container %s because it was not found.", container_id)
|
UM.Logger.log("w", "Could not get metadata of container %s because it was not found.", container_id)
|
||||||
return False
|
return ""
|
||||||
|
|
||||||
result = containers[0].getMetaDataEntry(entry_name)
|
result = containers[0].getMetaDataEntry(entry_name)
|
||||||
if result:
|
if result:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user