assembly: silence exception when deleting

This commit is contained in:
Zheng, Lei 2018-08-15 18:25:34 +08:00
parent c6fa2c0931
commit 46783ce484

View File

@ -2326,9 +2326,13 @@ class Assembly(AsmGroup):
super(Assembly,self).__init__() super(Assembly,self).__init__()
def getSubObjects(self,_obj,reason): def getSubObjects(self,_obj,reason):
partGroup = self.getPartGroup() # Deletion order problem may cause exception here. Just silence it
return ['{}.{}'.format(partGroup.Name,name) try:
for name in partGroup.getSubObjects(reason)] partGroup = self.getPartGroup()
return ['{}.{}'.format(partGroup.Name,name)
for name in partGroup.getSubObjects(reason)]
except Exception:
pass
def _collectParts(self,oldParts,newParts,partMap): def _collectParts(self,oldParts,newParts,partMap):
for part in newParts: for part in newParts: