mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +05:00
in Compute(), protect from exceptions while searching subshape name
This commit is contained in:
parent
cbf08eab3a
commit
80d4e38b71
@ -1208,17 +1208,14 @@ class Mesh:
|
||||
if len(ids) == 1 and ids[0] == err.subShapeID:
|
||||
shapeText = '"%s"' % subSO.GetName()
|
||||
break
|
||||
pass
|
||||
pass
|
||||
pass
|
||||
except: pass
|
||||
if not shapeText:
|
||||
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
|
||||
if shape:
|
||||
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
|
||||
else:
|
||||
shapeText = "%subshape #%s" % (err.subShapeID)
|
||||
pass
|
||||
if not shapeText:
|
||||
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
|
||||
if shape:
|
||||
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
|
||||
else:
|
||||
shapeText = "%subshape #%s" % (err.subShapeID)
|
||||
except:
|
||||
shapeText = "%subshape #%s" % (err.subShapeID)
|
||||
errText = ""
|
||||
stdErrors = ["OK", #COMPERR_OK
|
||||
"Invalid input mesh", #COMPERR_BAD_INPUT_MESH
|
||||
|
Loading…
Reference in New Issue
Block a user