Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Preserve stacktrace on TApplicationException

  • Loading branch information...
commit 803ef574414ba390b6546e612c19bbe482eb0e7e 1 parent e728703
@thobbs thobbs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pycassa/pool.py
View
6 pycassa/pool.py
@@ -11,7 +11,7 @@
if 'gevent.monkey' in sys.modules:
from gevent import queue as Queue
else:
- import Queue
+ import Queue # noqa
from thrift import Thrift
from thrift.transport.TTransport import TTransportException
@@ -127,11 +127,11 @@ def new_f(self, *args, **kwargs):
result = f(self, *args, **kwargs)
self._retry_count = 0 # reset the count after a success
return result
- except Thrift.TApplicationException, app_exc:
+ except Thrift.TApplicationException:
self.close()
self._pool._decrement_overflow()
self._pool._clear_current()
- raise app_exc
+ raise
except (TimedOutException, UnavailableException,
TTransportException,
socket.error, IOError, EOFError), exc:
Please sign in to comment.
Something went wrong with that request. Please try again.