replace exception pass with error message

This commit is contained in:
KiekerJan 2022-10-23 23:35:37 +02:00
parent 6336dbbff7
commit c462008a5e
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ def set_secondary_dns(hostnames, env):
try:
response = resolver.resolve(item, "AAAA")
except (dns.resolver.NoNameservers, dns.resolver.NXDOMAIN, dns.resolver.NoAnswer):
pass
raise ValueError("Could not resolve the IP address of %s due to dns error." % item)
except (dns.resolver.Timeout):
raise ValueError("Could not resolve the IP address of %s due to timeout." % item)
except (dns.resolver.Timeout):