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