diff --git a/usr/lib/python3.8/vmmgr/net.py b/usr/lib/python3.8/vmmgr/net.py index 280ec19..b7c2e35 100644 --- a/usr/lib/python3.8/vmmgr/net.py +++ b/usr/lib/python3.8/vmmgr/net.py @@ -44,7 +44,7 @@ def resolve_ip(domain, query_type): # Resolve domain name using Cloudflare Public DNS try: return resolver.query(domain, query_type)[0].address - except dns.resolver.NXDOMAIN: + except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer): return None def ping_url(url):