From eb13956a77a945ff44ea039be61b95b84b3a8849 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sat, 7 May 2022 00:25:06 +0200 Subject: [PATCH] Version 3.20.0 --- CHANGELOG.md | 2 ++ pyproject.toml | 2 +- src/dnsrobocert/core/challenge.py | 6 ++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ddca701..3435675a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## master - CURRENT + +## 3.20.0 - 07/05/2022 ### Modified * Upgrade to Certbot 1.27.0 * Upgrade to Lexicon 3.11.0 (new providers: `namecom` + various fixes) diff --git a/pyproject.toml b/pyproject.toml index 822825f5..62934bbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "dnsrobocert" -version = "3.19.0" +version = "3.20.0" description = "A tool to manage your DNS-challenged TLS certificates" license = "MIT" keywords = [ diff --git a/src/dnsrobocert/core/challenge.py b/src/dnsrobocert/core/challenge.py index c6d35101..27796cb0 100644 --- a/src/dnsrobocert/core/challenge.py +++ b/src/dnsrobocert/core/challenge.py @@ -3,7 +3,7 @@ import tldextract from dns.exception import Timeout from dns.rdatatype import RdataType -from dns.resolver import get_default_resolver, NXDOMAIN, NoAnswer +from dns.resolver import NXDOMAIN, NoAnswer, get_default_resolver from lexicon.client import Client from lexicon.config import ConfigResolver @@ -96,9 +96,7 @@ def resolve_canonical_challenge_name(name: str) -> str: while True: try: - answer = resolver.resolve( - current_name, rdtype=RdataType.CNAME - ) + answer = resolver.resolve(current_name, rdtype=RdataType.CNAME) current_name = str(answer[0].target) if current_name in visited: resolution_map = " -> ".join([*visited, current_name])