The DNS response does not contain an answer to the question.
| 186 | |
| 187 | |
| 188 | class 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 | |
| 206 | class NoNameservers(dns.exception.DNSException): |
no outgoing calls
no test coverage detected
searching dependent graphs…