]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add information about protocol, request, and response to NoNameservers exception. 98/head
authorPetr Spacek <pspacek@redhat.com>
Fri, 27 Mar 2015 13:52:25 +0000 (14:52 +0100)
committerPetr Viktorin <pviktori@redhat.com>
Thu, 21 May 2015 12:25:43 +0000 (14:25 +0200)
commita6ab3bb6a89c03be48dd2d88f1e4575c5d8166c4
treee19e6a9f4ddc835c6b208b3f8f194378538853f5
parent235e921d84b66c876437090dee8c1bc8517fd923
Add information about protocol, request, and response to NoNameservers exception.

Information about UDP/TCP protocol usage is returned from str(NoNameservers) but
request and response variables are intended for application debug logs
and are not returned from str().

str() for parametrized version of the exception now returns string like:
All nameservers failed to answer the query localhost. IN URI: Server 192.0.2.1 TCP port 53 anwered BADVERS; Server 192.0.2.2 UDP port 53 anwered BADVERS
dns/resolver.py