Minimal fix for dnspython 2.0.0 compatibility (still works with 1.16.0)
This commit is contained in:
1 parent
791f8d80de
commit
a90c88c53a
2 files changed
+3
-2
No files matched your search
@@ -127,7 +127,7 @@ def DNSLookup_dnspython(name,qtype,tcpfallback=True,timeout=5):
|
||||
elif qtype == 'PTR':
|
||||
retVal.append(((name, qtype), rdata.target.to_text(True)))
|
||||
elif qtype == 'TXT' or qtype == 'SPF':
|
||||
retVal.append(((name, qtype), rdata.strings))
|
||||
retVal.append(((name, qtype), list(rdata.strings)))
|
||||
except dns.resolver.NoAnswer:
|
||||
pass
|
||||
except dns.resolver.NXDOMAIN:
|
||||
|
||||
Reference in new issue
Block a user