Fix Bug9100_DumpComputePosition.py in SSL mode

This commit is contained in:
Anthony Geay 2021-08-13 16:43:29 +02:00
parent b3a36b5d8e
commit 8d185cc9e6

View File

@ -33,7 +33,15 @@ SMESH_Gen_No_Session_i::SMESH_Gen_No_Session_i( CORBA::ORB_ptr orb,
GEOM::GEOM_Gen_var SMESH_Gen_No_Session_i::GetGeomEngine( bool isShaper )
{
CORBA::Object_var temp = KERNEL::RetrieveCompo(isShaper ? "SHAPERSTUDY" : "GEOM");
CORBA::Object_var temp;
try
{
temp = KERNEL::RetrieveCompo(isShaper ? "SHAPERSTUDY" : "GEOM");
}
catch(...)
{
return GEOM::GEOM_Gen::_nil();
}
myGeomGen = GEOM::GEOM_Gen::_narrow( temp );
return myGeomGen;
}