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