More specific exception catching

So that we can still find programming errors in this code.

Contributes to issue CURA-4606.
This commit is contained in:
Ghostkeeper 2018-03-12 17:10:17 +01:00
parent d904f677bc
commit 1db8c967f2
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -101,7 +101,7 @@ class QualitySettingsModel(ListModel):
if quality_changes_node is not None: # it can be None if number of extruders are changed during runtime
try:
quality_containers.insert(0, quality_changes_node.getContainer())
except:
except RuntimeError:
# FIXME: This is to prevent incomplete update of QualityManager
Logger.logException("d", "Failed to get container for quality changes node %s", quality_changes_node)
return