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

Class NoAnswer

dns/resolver.py:188–203  ·  view source on GitHub ↗

The DNS response does not contain an answer to the question.

Source from the content-addressed store, hash-verified

186
187
188class NoAnswer(dns.exception.DNSException):
189 """The DNS response does not contain an answer to the question."""
190
191 fmt = "The DNS response does not contain an answer to the question: {query}"
192 supp_kwargs = {"response"}
193
194 # We do this as otherwise mypy complains about unexpected keyword argument
195 # idna_exception
196 def __init__(self, *args, **kwargs):
197 super().__init__(*args, **kwargs)
198
199 def _fmt_kwargs(self, **kwargs):
200 return super()._fmt_kwargs(query=kwargs["response"].question)
201
202 def response(self):
203 return self.kwargs["response"]
204
205
206class NoNameservers(dns.exception.DNSException):

Callers 4

resolve_nameMethod · 0.90
next_requestMethod · 0.85
query_resultMethod · 0.85
resolve_nameMethod · 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…