Skip to content

Commit

Permalink
Fix quality
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed Jun 14, 2020
1 parent 8c4ea69 commit a6e49e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dnsrobocert/core/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def auth(dnsrobocert_config: Dict[str, Any], lineage: str):
)
return

all_domains = os.environ.get("CERTBOT_ALL_DOMAINS", "")
all_domains = all_domains.split(",")
all_domains_str = os.environ.get("CERTBOT_ALL_DOMAINS", "")
all_domains = all_domains_str.split(",")
challenges_to_check = [
"_acme-challenge.{0}".format(domain) for domain in all_domains
]
Expand Down Expand Up @@ -130,7 +130,7 @@ def auth(dnsrobocert_config: Dict[str, Any], lineage: str):
def _check_one_challenge(challenge: str, token: Optional[str]) -> bool:
try:
answers = resolver.query(challenge, "TXT")
except (resolver.NXDOMAIN, resolver.NoAnswer) as e:
except (resolver.NXDOMAIN, resolver.NoAnswer):
print("TXT {0} does not exist.".format(challenge))
return False
else:
Expand Down

0 comments on commit a6e49e9

Please sign in to comment.