Skip to content

Commit

Permalink
special handling of NoAnswer exception during verification
Browse files Browse the repository at this point in the history
this seems to be a valid response...
  • Loading branch information
umlaeute committed Dec 21, 2016
1 parent b92cbc6 commit b2cf50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnspython-hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def verify_record(domain_name,
try:
answer = [_.to_text().strip('"'+"'")
for _ in resolver.query(domain_name, rtype)]
except dns.resolver.NXDOMAIN:
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer) as e:
# probably not there yet...
logger.debug("Unable to verify %s record for %s @ %s" % (rtype, domain_name, ns))
if not invert:
return False

Expand Down

0 comments on commit b2cf50f

Please sign in to comment.