Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex05_hole1build.py
index 8b577eb93267b247b117a7ecc6f14ba2b2fdf954..3a740f29f01e66ce214399c15052aae21d8d748d 100644 (file)
@@ -147,7 +147,9 @@ hexa.Hexahedron()
 # Mesh calculus
 # -------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Update object browser
 # ---------------------