summaryrefslogtreecommitdiff
path: root/py/demo/Ice/callback/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/demo/Ice/callback/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/demo/Ice/callback/Server.py')
-rw-r--r--py/demo/Ice/callback/Server.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/demo/Ice/callback/Server.py b/py/demo/Ice/callback/Server.py
index 5a1f767c276..2576941961d 100644
--- a/py/demo/Ice/callback/Server.py
+++ b/py/demo/Ice/callback/Server.py
@@ -7,7 +7,7 @@
#
# **********************************************************************
-import sys, Ice
+import sys, traceback, Ice
Ice.loadSlice('Callback.ice')
import Demo
@@ -17,15 +17,15 @@ class CallbackI(Demo.Callback):
print "initiating callback"
try:
proxy.callback(current.ctx)
- except Ice.Exception, ex:
- print ex
+ except:
+ traceback.print_exc()
def shutdown(self, current=None):
print "Shutting down..."
try:
current.adapter.getCommunicator().shutdown()
- except Ice.Exception, ex:
- print ex
+ except:
+ traceback.print_exc()
class CallbackServer(Ice.Application):
def run(self, args):