From a32b92165863db3af83240c23fa71811b058558a Mon Sep 17 00:00:00 2001 From: Blake Eggleston Date: Tue, 11 Feb 2014 11:19:03 -0800 Subject: [PATCH] removing uneccesary try/except block --- cqlengine/connection.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cqlengine/connection.py b/cqlengine/connection.py index 2eb2d30e..e03a35b1 100644 --- a/cqlengine/connection.py +++ b/cqlengine/connection.py @@ -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): """