summaryrefslogtreecommitdiff
path: root/tests/test_exceptions.py
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2015-03-27 14:52:25 +0100
committerPetr Viktorin <pviktori@redhat.com>2015-05-21 14:25:43 +0200
commita6ab3bb6a89c03be48dd2d88f1e4575c5d8166c4 (patch)
treee19e6a9f4ddc835c6b208b3f8f194378538853f5 /tests/test_exceptions.py
parent235e921d84b66c876437090dee8c1bc8517fd923 (diff)
downloaddnspython-a6ab3bb6a89c03be48dd2d88f1e4575c5d8166c4.tar.gz
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
Diffstat (limited to 'tests/test_exceptions.py')
0 files changed, 0 insertions, 0 deletions