X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_PY%2Fsmeshstudytools.py;h=f5dd2b3a28443cda5efc6be4b15f4cf51a6cecab;hb=HEAD;hp=dc5ce1c066952a768bdfef1a167b727bebd7d1f5;hpb=b24a2d1b7692bdb21cf037b026e0273ba547cef4;p=modules%2Fsmesh.git diff --git a/src/SMESH_PY/smeshstudytools.py b/src/SMESH_PY/smeshstudytools.py index dc5ce1c06..53b58b4c2 100644 --- a/src/SMESH_PY/smeshstudytools.py +++ b/src/SMESH_PY/smeshstudytools.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -203,6 +203,8 @@ def TEST_createBoxMesh(): Hexa_3D = smesh.CreateHypothesis('Hexa_3D') status = boxmesh.AddHypothesis(Hexa_3D) isDone = boxmesh.Compute() + if not isDone: + raise Exception("Error when computing Mesh") smesh.SetName(boxmesh.GetMesh(), 'boxmesh') if salome.sg.hasDesktop():