diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-12-21 10:58:51 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-12-21 10:58:51 +0000 |
commit | 28b738e689df7c1fe77a8945f375cab2c20b16eb (patch) | |
tree | 39d0a56feaa29eb047dd949a86bb1db55a402e17 /py/demo/Ice/session/Client.py | |
parent | Fixed bug #575 (diff) | |
download | ice-28b738e689df7c1fe77a8945f375cab2c20b16eb.tar.bz2 ice-28b738e689df7c1fe77a8945f375cab2c20b16eb.tar.xz ice-28b738e689df7c1fe77a8945f375cab2c20b16eb.zip |
_logger -> self._logger and got rid of traceback.format_exc which isn't
supported with python 2.3
Diffstat (limited to 'py/demo/Ice/session/Client.py')
-rw-r--r-- | py/demo/Ice/session/Client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/demo/Ice/session/Client.py b/py/demo/Ice/session/Client.py index c6bb2ec882f..ef85026cccf 100644 --- a/py/demo/Ice/session/Client.py +++ b/py/demo/Ice/session/Client.py @@ -8,7 +8,7 @@ # # ********************************************************************** -import sys, traceback, threading, Ice +import sys, threading, Ice Ice.loadSlice('Session.ice') import Demo @@ -30,8 +30,8 @@ class SessionRefreshThread(threading.Thread): if not self._terminated: try: self._session.refresh() - except: - _logger.warning("SessionRefreshThread: " + traceback.format_exc()) + except Ice.LocalException, ex: + self._logger.warning("SessionRefreshThread: " + str(ex)) self._terminated = True finally: self._cond.release() |