summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-06-04 00:18:36 +0200
committerGitHub <noreply@github.com>2021-06-03 17:18:36 -0500
commitdb91619110ebf43ef74be24ce13c39e5d6e18b9a (patch)
tree731fcbc921d0182cf427133e1c85d0ccb1f24ec8
parent2f033880938c453895e087b285d50f979acbd0ce (diff)
downloadurllib3-db91619110ebf43ef74be24ce13c39e5d6e18b9a.tar.gz
Skip coverage of AttributeError exception in HTTPConnectionPool._get_conn()
-rw-r--r--src/urllib3/connectionpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urllib3/connectionpool.py b/src/urllib3/connectionpool.py
index fd68cd00..1604a951 100644
--- a/src/urllib3/connectionpool.py
+++ b/src/urllib3/connectionpool.py
@@ -257,7 +257,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
conn = self.pool.get(block=self.block, timeout=timeout)
except AttributeError: # self.pool is None
- raise ClosedPoolError(self, "Pool is closed.")
+ raise ClosedPoolError(self, "Pool is closed.") # Defensive:
except queue.Empty:
if self.block: