Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions irods/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _conn(self, conn_):
def get_connection(self):
new_conn = False
with self._lock:
try:
if self.idle:
conn = self.idle.pop()

curr_time = datetime.datetime.now()
Expand All @@ -105,7 +105,7 @@ def get_connection(self):
conn = Connection(self, self.account)
new_conn = True
logger.debug(f"Created new connection with id: {id(conn)}")
except KeyError:
else:
conn = Connection(self, self.account)
new_conn = True
logger.debug(f"No connection found in idle set. Created a new connection with id: {id(conn)}")
Expand Down
Loading