Thrift is not lazy during opening connection

we need to look out for exceptions even when requesting one
This commit is contained in:
Honza Král
2014-01-18 21:29:26 +01:00
parent a3e98c5ec3
commit 2a76e66dea
+1 -1
View File
@@ -56,8 +56,8 @@ class ThriftConnection(PoolingConnection):
parameters=params, body=body)
start = time.time()
tclient = self._get_connection()
try:
tclient = self._get_connection()
response = tclient.execute(request)
duration = time.time() - start
except TException as e: