]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Use public dns.set.Set interface.
authorBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 21:14:31 +0000 (14:14 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 21:14:31 +0000 (14:14 -0700)
dns/resolver.py

index 3709f4694d289a63f599ee3d661807bb9feec1b4..889303799f39be022d9f8e054d24b8bfda15628d 100644 (file)
@@ -85,7 +85,7 @@ class NXDOMAIN(dns.exception.DNSException):
             for answer in response.answer:
                 if answer.rdtype != CNAME or answer.rdclass != IN:
                     continue
-                cname = answer.items[0].target.to_text()
+                cname = answer[0].target.to_text()
             if cname is not None:
                 return dns.name.from_text(cname)
         return self.kwargs['qnames'][0]