MCPcopy Create free account
hub / github.com/rthalley/dnspython / LifetimeTimeout

Class LifetimeTimeout

dns/resolver.py:163–179  ·  view source on GitHub ↗

The resolution lifetime expired.

Source from the content-addressed store, hash-verified

161
162
163class 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

Callers 1

_compute_timeoutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…