From: Bob Halley Date: Mon, 26 Sep 2016 15:45:37 +0000 (-0700) Subject: Fix linting change that caused the wrong qname to be used when X-Git-Tag: v1.15.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292995db18f16a528471250fab5cb25082b7d193;p=thirdparty%2Fdnspython.git Fix linting change that caused the wrong qname to be used when contructing the Answer object, which caused everything to be not found. [Issue #206] --- diff --git a/dns/resolver.py b/dns/resolver.py index d20f80bc..f6ab64f6 100644 --- a/dns/resolver.py +++ b/dns/resolver.py @@ -1048,10 +1048,10 @@ class Resolver(object): break if all_nxdomain: raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses) - answer = Answer(qname, rdtype, rdclass, response, + answer = Answer(_qname, rdtype, rdclass, response, raise_on_no_answer) if self.cache: - self.cache.put((qname, rdtype, rdclass), answer) + self.cache.put((_qname, rdtype, rdclass), answer) return answer def use_tsig(self, keyring, keyname=None,