Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex01_cube2build.py
index 44fe5a9d5cd116e43bdfc01fc06edd7dbc1ea818..033be24e2c5f61f8c63187b16631766fbf762a94 100644 (file)
@@ -318,7 +318,9 @@ algo.Propagation()
 # Compute the mesh
 # ----------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Update object browser
 # ---------------------