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