The resolution lifetime expired.
| 161 | |
| 162 | |
| 163 | class LifetimeTimeout(dns.exception.Timeout): |
| 164 | """The resolution lifetime expired.""" |
| 165 | |
| 166 | msg = "The resolution lifetime expired." |
| 167 | fmt = f"{msg[:-1]} after {{timeout:.3f}} seconds: {{errors}}" |
| 168 | supp_kwargs = {"timeout", "errors"} |
| 169 | |
| 170 | # We do this as otherwise mypy complains about unexpected keyword argument |
| 171 | # idna_exception |
| 172 | def __init__(self, *args, **kwargs): |
| 173 | super().__init__(*args, **kwargs) |
| 174 | |
| 175 | def _fmt_kwargs(self, **kwargs): |
| 176 | srv_msgs = _errors_to_text(kwargs["errors"]) |
| 177 | return super()._fmt_kwargs( |
| 178 | timeout=kwargs["timeout"], errors="; ".join(srv_msgs) |
| 179 | ) |
| 180 | |
| 181 | |
| 182 | # We added more detail to resolution timeouts, but they are still |
no outgoing calls
no test coverage detected
searching dependent graphs…