From 5cff354ec8d7a83212426e3730b053685ff642cf Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 15 Dec 2023 14:01:10 +0000 Subject: [PATCH] Revert "fix a KeyError" This reverts commit fa789e975b08ba1a40fc7163fc72a0b26a353ad3. --- vcr/patch.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vcr/patch.py b/vcr/patch.py index d6dd9b7..d1527a5 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -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)