Skip to content

Commit

Permalink
assembly: silence exception when deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Aug 15, 2018
1 parent c6fa2c0 commit 46783ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -2326,9 +2326,13 @@ def __init__(self):
super(Assembly,self).__init__()

def getSubObjects(self,_obj,reason):
partGroup = self.getPartGroup()
return ['{}.{}'.format(partGroup.Name,name)
for name in partGroup.getSubObjects(reason)]
# Deletion order problem may cause exception here. Just silence it
try:
partGroup = self.getPartGroup()
return ['{}.{}'.format(partGroup.Name,name)
for name in partGroup.getSubObjects(reason)]
except Exception:
pass

def _collectParts(self,oldParts,newParts,partMap):
for part in newParts:
Expand Down

0 comments on commit 46783ce

Please sign in to comment.