From c462008a5e8067b5f71ddc4c542b88b9205425f3 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sun, 23 Oct 2022 23:35:37 +0200 Subject: [PATCH] replace exception pass with error message --- management/dns_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/dns_update.py b/management/dns_update.py index d7c1f617..3c761ac8 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -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):