removing uneccesary try/except block
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user