]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add information about protocol, request, and response to NoNameservers exception. 92/head
authorPetr Spacek <pspacek@redhat.com>
Fri, 27 Mar 2015 13:52:25 +0000 (14:52 +0100)
committerPetr Spacek <pspacek@redhat.com>
Fri, 27 Mar 2015 14:57:39 +0000 (15:57 +0100)
commit3e70af5d740456e918c75b88bbf3c78d16569a94
tree32bb2ffe6c67cd3803d5deab3bec4116490bf375
parent6309fcf022ff974c5ed8efb0519d048e44bd1810
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