summaryrefslogtreecommitdiff
path: root/py/test/Ice/objects/Server.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-09-20 17:49:15 +0000
committerMark Spruiell <mes@zeroc.com>2004-09-20 17:49:15 +0000
commit93f639da04b12906030417000736f58d3eed541a (patch)
treee4bfb2eac94a4425c39ca5956ec2e74a1dd716c0 /py/test/Ice/objects/Server.py
parentIce::Service no longer resets the umask (diff)
downloadice-93f639da04b12906030417000736f58d3eed541a.tar.bz2
ice-93f639da04b12906030417000736f58d3eed541a.tar.xz
ice-93f639da04b12906030417000736f58d3eed541a.zip
print exception and traceback
Diffstat (limited to 'py/test/Ice/objects/Server.py')
-rw-r--r--py/test/Ice/objects/Server.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/test/Ice/objects/Server.py b/py/test/Ice/objects/Server.py
index b49f7aee30d..b82283492ac 100644
--- a/py/test/Ice/objects/Server.py
+++ b/py/test/Ice/objects/Server.py
@@ -7,7 +7,7 @@
#
# **********************************************************************
-import sys, Ice
+import sys, traceback, Ice
Ice.loadSlice('Test.ice')
import Test, TestI
@@ -81,15 +81,15 @@ def run(args, communicator):
try:
communicator = Ice.initialize(sys.argv)
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:
- print ex
+ except:
+ traceback.print_exc()
status = False
sys.exit(not status)