From f0c9957f917c9e7afa978b978a49f1fb872e636f Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 31 Jan 2012 11:10:28 +0000 Subject: [PATCH] fix for the case of RuntimeError: Naming Service Unreacheable -except ImportError: +except: --- src/GEOM_PY/geomtools.py | 2 +- src/GEOM_PY/sketcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2