Remove catch of RuntimeError

The error is no longer thrown and the function has its own error message.

Contributes to issue CURA-5045.
This commit is contained in:
Ghostkeeper 2018-03-27 14:28:17 +02:00
parent dd3b49e80d
commit 4f56221126
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -101,12 +101,7 @@ class QualitySettingsModel(ListModel):
else:
quality_changes_node = quality_changes_group.nodes_for_extruders.get(str(self._selected_position))
if quality_changes_node is not None and quality_changes_node.getContainer() 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 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
quality_containers.insert(0, quality_changes_node.getContainer())
settings_keys.update(quality_changes_group.getAllKeys())
# We iterate over all definitions instead of settings in a quality/qualtiy_changes group is because in the GUI,