From: eap Date: Tue, 31 Jan 2012 11:10:28 +0000 (+0000) Subject: fix for the case of X-Git-Tag: V6_5_0a1~79 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0c9957f917c9e7afa978b978a49f1fb872e636f;p=modules%2Fgeom.git fix for the case of RuntimeError: Naming Service Unreacheable -except ImportError: +except: --- diff --git a/src/GEOM_PY/geomtools.py b/src/GEOM_PY/geomtools.py index 27fc960e5..4b5c16302 100644 --- a/src/GEOM_PY/geomtools.py +++ b/src/GEOM_PY/geomtools.py @@ -34,7 +34,7 @@ from salome.kernel.studyedit import getActiveStudyId, getStudyEditor from salome.kernel.services import IDToObject try: from salome.gui import helper -except ImportError: +except: pass _geompys = {} diff --git a/src/GEOM_PY/sketcher.py b/src/GEOM_PY/sketcher.py index 6b4f864a1..252bf607f 100644 --- a/src/GEOM_PY/sketcher.py +++ b/src/GEOM_PY/sketcher.py @@ -48,7 +48,7 @@ Additionnal examples can be found as unit tests in the source code. geompyEnable = True try: import geompy -except ImportError: +except: geompyEnable = False