NXDOMAIN script: do not thread domain as broken if the answer is empty

This commit is contained in:
ValdikSS 2020-09-16 16:07:00 +03:00
parent 88d66d1e41
commit 04337a4486

View file

@ -34,9 +34,11 @@ class AZResolver(dns.asyncresolver.Resolver):
await self.resolve(domain)
except (dns.exception.Timeout, dns.resolver.NXDOMAIN,
dns.resolver.YXDOMAIN, dns.resolver.NoAnswer,
dns.resolver.NoNameservers):
dns.resolver.YXDOMAIN, dns.resolver.NoNameservers):
return domain
except dns.resolver.NoAnswer:
# Do not thread domain as broken if the answer is empty
pass
async def runTasksWithProgress(tasks):
progress = 0