Removed too generic exception handling

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-06-02 13:52:11 +02:00
parent a33b6c2cd3
commit ca218d7a1f

View file

@ -32,18 +32,14 @@ class PerObjectSettingsTool(Tool):
return selected_object_id return selected_object_id
def getContainerID(self): def getContainerID(self):
try:
selected_object = Selection.getSelectedObject(0) selected_object = Selection.getSelectedObject(0)
if selected_object.getParent().callDecoration("isGroup"): if selected_object.getParent().callDecoration("isGroup"):
selected_object = selected_object.getParent() selected_object = selected_object.getParent()
try: try:
return selected_object.callDecoration("getStack").getId() return selected_object.callDecoration("getStack").getId()
except: except AttributeError:
print(":(") return ""
return
except:
print(":((")
return
def setContainerID(self, value): def setContainerID(self, value):
pass pass