From: Bob Halley Date: Tue, 20 Feb 2018 20:19:04 +0000 (-0800) Subject: The NXDOMAIN exception should not use its docstring. X-Git-Tag: v1.16.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844fa1e354cdad65f9eac3ce065a4fd87ff8f74d;p=thirdparty%2Fdnspython.git The NXDOMAIN exception should not use its docstring. [Issue #253] --- diff --git a/README.md b/README.md index c19183ac..bddad224 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,17 @@ continuing to employ the author :). ## ABOUT THIS RELEASE -This is dnspython 1.15.0 +This is dnspython 1.16.0 + +### New since 1.15.0: + +XXXTBSXXX + +### Bugs fixed since 1.15.0: + +* DNSSEC signature validation didn't check names correctly. [Issue #295] + +* The NXDOMAIN exception should not use its docstring. [Issue #253] ### New since 1.14.0: @@ -51,10 +61,6 @@ This is dnspython 1.15.0 * The AVC RR is now supported. -### Bugs fixed since 1.15.0: - -* DNSSEC signature validation didn't check names correctly. [Issue #295] - ### Bugs fixed since 1.14.0: * Some problems with newlines in various output modes have been diff --git a/dns/resolver.py b/dns/resolver.py index 00323835..e8d1f673 100644 --- a/dns/resolver.py +++ b/dns/resolver.py @@ -69,7 +69,7 @@ class NXDOMAIN(dns.exception.DNSException): if len(qnames) > 1: msg = 'None of DNS query names exist' else: - msg = self.__doc__[:-1] + msg = 'The DNS query name does not exist' qnames = ', '.join(map(str, qnames)) return "%s: %s" % (msg, qnames)