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