mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +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:
|
if len(ids) == 1 and ids[0] == err.subShapeID:
|
||||||
shapeText = '"%s"' % subSO.GetName()
|
shapeText = '"%s"' % subSO.GetName()
|
||||||
break
|
break
|
||||||
pass
|
if not shapeText:
|
||||||
pass
|
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
|
||||||
pass
|
if shape:
|
||||||
except: pass
|
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
|
||||||
if not shapeText:
|
else:
|
||||||
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
|
shapeText = "%subshape #%s" % (err.subShapeID)
|
||||||
if shape:
|
except:
|
||||||
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
|
shapeText = "%subshape #%s" % (err.subShapeID)
|
||||||
else:
|
|
||||||
shapeText = "%subshape #%s" % (err.subShapeID)
|
|
||||||
pass
|
|
||||||
errText = ""
|
errText = ""
|
||||||
stdErrors = ["OK", #COMPERR_OK
|
stdErrors = ["OK", #COMPERR_OK
|
||||||
"Invalid input mesh", #COMPERR_BAD_INPUT_MESH
|
"Invalid input mesh", #COMPERR_BAD_INPUT_MESH
|
||||||
|
Loading…
Reference in New Issue
Block a user