Minimal fix for dnspython 2.0.0 compatibility (still works with 1.16.0)

This commit is contained in:
Scott Kitterman
2020-08-09 14:12:05 -04:00
parent 44d8924060
commit b4da312ea7
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1,8 +1,11 @@
1.3.0 WARNING LAST COMMIT IS WIP 1.3.0 WARNING LAST COMMIT IS WIP
- Improve resilience to malformed email addresses - Improve resilience to malformed email addresses
1.2.2 2020-08-09
- Improve README.md formating for markdown display on pypi - Improve README.md formating for markdown display on pypi
- Improve documentation in dkimpy-milter.conf (5) and README.md for signing - Improve documentation in dkimpy-milter.conf (5) and README.md for signing
for multiple domains (Thanks to Stefano Rivera) for multiple domains (Thanks to Stefano Rivera)
- Minimal fix for dnspython 2.0.0 compatibility (still works with 1.16.0)
1.2.1 2020-01-04 1.2.1 2020-01-04
- Fix expand option not to fail if files are missing since socket activation - Fix expand option not to fail if files are missing since socket activation
+1 -1
View File
@@ -127,7 +127,7 @@ def DNSLookup_dnspython(name,qtype,tcpfallback=True,timeout=5):
elif qtype == 'PTR': elif qtype == 'PTR':
retVal.append(((name, qtype), rdata.target.to_text(True))) retVal.append(((name, qtype), rdata.target.to_text(True)))
elif qtype == 'TXT' or qtype == 'SPF': elif qtype == 'TXT' or qtype == 'SPF':
retVal.append(((name, qtype), rdata.strings)) retVal.append(((name, qtype), list(rdata.strings)))
except dns.resolver.NoAnswer: except dns.resolver.NoAnswer:
pass pass
except dns.resolver.NXDOMAIN: except dns.resolver.NXDOMAIN: