removing uneccesary try/except block

This commit is contained in:
Blake Eggleston
2014-02-11 11:19:03 -08:00
parent 8dd1c6b9e2
commit a32b921658

View File

@@ -146,10 +146,7 @@ class ConnectionPool(object):
# is immediately available, else raises the Empty exception
return self._queue.get(block=False)
except queue.Empty:
try:
return self._create_connection()
except CQLConnectionError as cqle:
raise cqle
return self._create_connection()
def put(self, conn):
"""