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