diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-10-05 10:40:16 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-10-05 10:40:16 +0300 |
commit | ad80678bc2c49b2be70791881289f10e02a34ecc (patch) | |
tree | 70752f68cfd4e30f033ad0fd12dbc7893f413d77 /cura/QualityManager.py | |
parent | e66548099a728fb1bbbfb76d2f4f9107dd33ab3e (diff) |
Gracefully handle case if no material was found
CURA-2494
Diffstat (limited to 'cura/QualityManager.py')
-rw-r--r-- | cura/QualityManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/QualityManager.py b/cura/QualityManager.py index fb3a623466..4f57bc1a8d 100644 --- a/cura/QualityManager.py +++ b/cura/QualityManager.py @@ -159,7 +159,8 @@ class QualityManager: else:
material_ids = set()
for material_instance in material_containers:
- material_ids.add(material_instance.getId())
+ if material_instance is not None:
+ material_ids.add(material_instance.getId())
containers = UM.Settings.ContainerRegistry.getInstance().findInstanceContainers(**criteria)
|