diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-06-04 00:18:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 17:18:36 -0500 |
| commit | db91619110ebf43ef74be24ce13c39e5d6e18b9a (patch) | |
| tree | 731fcbc921d0182cf427133e1c85d0ccb1f24ec8 | |
| parent | 2f033880938c453895e087b285d50f979acbd0ce (diff) | |
| download | urllib3-db91619110ebf43ef74be24ce13c39e5d6e18b9a.tar.gz | |
Skip coverage of AttributeError exception in HTTPConnectionPool._get_conn()
| -rw-r--r-- | src/urllib3/connectionpool.py | 2 |
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: |
