mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 13:50:35 +05:00
fix for the case of
RuntimeError: Naming Service Unreacheable -except ImportError: +except:
This commit is contained in:
parent
0dc8a37ac5
commit
f0c9957f91
@ -34,7 +34,7 @@ from salome.kernel.studyedit import getActiveStudyId, getStudyEditor
|
|||||||
from salome.kernel.services import IDToObject
|
from salome.kernel.services import IDToObject
|
||||||
try:
|
try:
|
||||||
from salome.gui import helper
|
from salome.gui import helper
|
||||||
except ImportError:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
_geompys = {}
|
_geompys = {}
|
||||||
|
@ -48,7 +48,7 @@ Additionnal examples can be found as unit tests in the source code.
|
|||||||
geompyEnable = True
|
geompyEnable = True
|
||||||
try:
|
try:
|
||||||
import geompy
|
import geompy
|
||||||
except ImportError:
|
except:
|
||||||
geompyEnable = False
|
geompyEnable = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user