Are we out of retries?
(self)
| 431 | ) |
| 432 | |
| 433 | def is_exhausted(self) -> bool: |
| 434 | """Are we out of retries?""" |
| 435 | retry_counts = [ |
| 436 | x |
| 437 | for x in ( |
| 438 | self.total, |
| 439 | self.connect, |
| 440 | self.read, |
| 441 | self.redirect, |
| 442 | self.status, |
| 443 | self.other, |
| 444 | ) |
| 445 | if x |
| 446 | ] |
| 447 | if not retry_counts: |
| 448 | return False |
| 449 | |
| 450 | return min(retry_counts) < 0 |
| 451 | |
| 452 | def increment( |
| 453 | self, |
no outgoing calls