(self)
| 412 | log.debug("Finished initializing connection for host %s", self.host) |
| 413 | |
| 414 | def _get_connection(self): |
| 415 | if self.is_shutdown: |
| 416 | raise ConnectionException( |
| 417 | "Pool for %s is shutdown" % (self.host,), self.host) |
| 418 | |
| 419 | conn = self._connection |
| 420 | if not conn: |
| 421 | raise NoConnectionsAvailable() |
| 422 | return conn |
| 423 | |
| 424 | def borrow_connection(self, timeout): |
| 425 | conn = self._get_connection() |
no test coverage detected