Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex03_cube2partition.py
index 109644f7a349086b9819187d6214d499e294e79d..eb89f55749abfb3e22c21fac58ee613f51285bd5 100644 (file)
@@ -107,7 +107,9 @@ hexa.Hexahedron()
 # Compute the mesh
 # ----------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Update object browser
 # ---------------------