From a8fc688591f2165932ac131a6fe20f143aaf3760 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 28 Jul 2005 12:23:50 +0000 Subject: [PATCH] Fix for ( Bug IPAL9592 3.0.0 REGRESSION: error is raised after import "batchmode_salome.py" ). --- src/KERNEL_PY/batchmode_salome.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/KERNEL_PY/batchmode_salome.py b/src/KERNEL_PY/batchmode_salome.py index 249dff3e0..abd099f1f 100755 --- a/src/KERNEL_PY/batchmode_salome.py +++ b/src/KERNEL_PY/batchmode_salome.py @@ -229,13 +229,13 @@ if orb is None: lcc = LifeCycleCORBA(orb) step = 0 -while step < 100 and lcc._catalog is None: +while step < 100 and lcc is None: lcc = LifeCycleCORBA(orb) step = step + 1 time.sleep(4) -if lcc._catalog is None: - print "Warning: LifeCycleCORBA object is incomplete !!!" +if lcc is None: + print "Warning: LifeCycleCORBA object has not been initialized !!!" #create a naming service instance naming_service = SALOME_NamingServicePy_i(orb) -- 2.39.2