diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-08-30 18:16:01 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-08-30 18:16:01 +0000 |
commit | 31dcbb6b9a798b95db0da06a6f58d234ccdafda0 (patch) | |
tree | 61ec0ae770923999cd4a51a9e9e0dfde16ffc30f /py/demo/Ice/hello/Client.py | |
parent | initial check-in (diff) | |
download | ice-31dcbb6b9a798b95db0da06a6f58d234ccdafda0.tar.bz2 ice-31dcbb6b9a798b95db0da06a6f58d234ccdafda0.tar.xz ice-31dcbb6b9a798b95db0da06a6f58d234ccdafda0.zip |
minor fixes
Diffstat (limited to 'py/demo/Ice/hello/Client.py')
-rw-r--r-- | py/demo/Ice/hello/Client.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/py/demo/Ice/hello/Client.py b/py/demo/Ice/hello/Client.py index 8ac08e00f6e..2a71e00f76c 100644 --- a/py/demo/Ice/hello/Client.py +++ b/py/demo/Ice/hello/Client.py @@ -27,9 +27,10 @@ x: exit def run(args, communicator): properties = communicator.getProperties() - proxy = properties.getProperty('Hello.Proxy') + refProperty = 'Hello.Proxy' + proxy = properties.getProperty(refProperty) if len(proxy) == 0: - print " property `Hello.Proxy' not set" + print args[0] + ": property `" + refPropert + "' not set" return False base = communicator.stringToProxy(proxy) @@ -111,6 +112,7 @@ def run(args, communicator): return True +communicator = None try: properties = Ice.createProperties() properties.load("config") @@ -127,7 +129,4 @@ if communicator: print ex status = False -if status: - sys.exit(0) -else: - sys.exit(1) +sys.exit(not status) |