Salome HOME
[PY3] use python3 idioms, fix relative imports, fix plugins
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex15.py
index efd5cfbf9b051a20e33693316dbbb31c44f7189a..9141e5c8c8947ebf4521cf38b0e48ee42d58e83c 100644 (file)
@@ -33,7 +33,7 @@ for vId in geompy.SubShapeAllIDs( box, geompy.ShapeType["VERTEX"]):
     pass
 
 if not node000:
-    raise "node000 not found"
+    raise Exception("node000 not found")
 
 # find node000 using a dedicated function 
 n = mesh.FindNodeClosestTo( -1,-1,-1 )