mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Right type is now returned if metadata entry is not found
CURA-2242
This commit is contained in:
parent
544941e33e
commit
d34f54a3c7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue