1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

Revert "fix a KeyError"

This reverts commit fa789e975b.
This commit is contained in:
Thomas Grainger
2023-12-15 14:01:10 +00:00
parent 80614dbd00
commit 5cff354ec8

View File

@@ -386,10 +386,7 @@ class ConnectionRemover:
while pool.pool and not pool.pool.empty() and connections:
connection = pool.pool.get()
if isinstance(connection, self._connection_class):
try:
connections.remove(connection)
except KeyError:
pass
connections.remove(connection)
connection.close()
else:
readd_connections.append(connection)