Right type is now returned if metadata entry is not found

CURA-2242
This commit is contained in:
Jaime van Kessel 2016-09-09 10:29:16 +02:00
parent 544941e33e
commit d34f54a3c7

View file

@ -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: