From 8254c331444689c1ab855a37c5a65deeb76339ad Mon Sep 17 00:00:00 2001 From: dblanque Date: Mon, 13 Nov 2023 10:51:39 -0300 Subject: [PATCH] Fix Lexicon breaking for subdomains on PowerDNS API 4.8.3 --- certbot_dns_powerdns/dns_powerdns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/certbot_dns_powerdns/dns_powerdns.py b/certbot_dns_powerdns/dns_powerdns.py index 55fe2ee..e69838c 100644 --- a/certbot_dns_powerdns/dns_powerdns.py +++ b/certbot_dns_powerdns/dns_powerdns.py @@ -88,7 +88,9 @@ def _handle_http_error(self, e, domain_name): # 4.0 and 4.1 compatibility str(e).startswith('422 Client Error: Unprocessable Entity for url:') or # 4.2 - str(e).startswith('404 Client Error: Not Found for url:') + str(e).startswith('404 Client Error: Not Found for url:') or + # 4.8.3 + str(e).startswith('404 Client Error: NOT FOUND for url:') ): return # Expected errors when zone name guess is wrong return super(_PowerDNSLexiconClient, self)._handle_http_error(e, domain_name)