From: rnv Date: Sat, 29 Nov 2008 14:31:57 +0000 (+0000) Subject: Implementation notebook in the SMESH module. X-Git-Tag: TG_DumpPython_Extension_3~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=246b043ec93df688960ba7cdb845a04efe107f91;p=modules%2Fsmesh.git Implementation notebook in the SMESH module. --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index c1c1ca309..4b1f82b92 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -4229,9 +4229,12 @@ def ParseParameters(last, nbParams,nbParam, value): else: strResult = strResult + "" else: - if isinstance(value, str) and notebook.isVariable(value): - result = notebook.get(value) - strResult=strResult+value + if isinstance(value, str): + if notebook.isVariable(value): + result = notebook.get(value) + strResult=strResult+value + else: + raise RuntimeError, "Variable with name '" + value + "' doesn't exist!!!" else: strResult=strResult+str(value) result = value