From: jfa Date: Fri, 30 Nov 2007 08:22:12 +0000 (+0000) Subject: Fix error. X-Git-Tag: V4_1_0rc2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1f0bf236502bacb1fb90d8e7ef5ab7c91c6851d;p=modules%2Fgeom.git Fix error. --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index d5704858f..a684cf24b 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -47,7 +47,7 @@ ShapeType = {"COMPOUND":0, "COMPSOLID":1, "SOLID":2, "SHELL":3, "FACE":4, "WIRE" # ----------------------------------------------------------------------------- def RaiseIfFailed (Method_name, Operation): #NPAL18017#if Operation.IsDone() == 0: - if operation.IsDone() == 0 and operation.GetErrorCode() != "NOT_FOUND_ANY": + if Operation.IsDone() == 0 and Operation.GetErrorCode() != "NOT_FOUND_ANY": raise RuntimeError, Method_name + " : " + Operation.GetErrorCode() # -----------------------------------------------------------------------------