diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-09-20 17:49:15 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-09-20 17:49:15 +0000 |
commit | 93f639da04b12906030417000736f58d3eed541a (patch) | |
tree | e4bfb2eac94a4425c39ca5956ec2e74a1dd716c0 /py/demo/Ice/throughput/Server.py | |
parent | Ice::Service no longer resets the umask (diff) | |
download | ice-93f639da04b12906030417000736f58d3eed541a.tar.bz2 ice-93f639da04b12906030417000736f58d3eed541a.tar.xz ice-93f639da04b12906030417000736f58d3eed541a.zip |
print exception and traceback
Diffstat (limited to 'py/demo/Ice/throughput/Server.py')
-rw-r--r-- | py/demo/Ice/throughput/Server.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/py/demo/Ice/throughput/Server.py b/py/demo/Ice/throughput/Server.py index d847517d3a6..4aef7046e1d 100644 --- a/py/demo/Ice/throughput/Server.py +++ b/py/demo/Ice/throughput/Server.py @@ -7,7 +7,7 @@ # # ********************************************************************** -import sys, Ice +import sys, traceback, Ice Ice.loadSlice('Throughput.ice') import Demo @@ -40,14 +40,15 @@ try: properties.load("config") communicator = Ice.initializeWithProperties(sys.argv, properties) status = run(sys.argv, communicator) -except Ice.Exception, ex: - print ex +except: + traceback.print_exc() status = False if communicator: try: communicator.destroy() - except Ice.Exception, ex: + except: + traceback.print_exc() print ex status = False |