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