assembly: silence exception when deleting
This commit is contained in:
parent
c6fa2c0931
commit
46783ce484
10
assembly.py
10
assembly.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user