mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Exclude import error case from coverage in dns_resolver
This commit is contained in:
@@ -19,7 +19,7 @@ def txt_records_for_name(name):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
dns_response = dns.resolver.query(name, 'TXT')
|
dns_response = dns.resolver.query(name, 'TXT')
|
||||||
except ImportError as error:
|
except ImportError as error: # pragma: no cover
|
||||||
raise ImportError("Local validation for 'dns-01' challenges requires "
|
raise ImportError("Local validation for 'dns-01' challenges requires "
|
||||||
"'dnspython'")
|
"'dnspython'")
|
||||||
except dns.exception.DNSException as error:
|
except dns.exception.DNSException as error:
|
||||||
|
|||||||
Reference in New Issue
Block a user