From b8ce943b119ee0b78ad8806c655746a3cb683ca6 Mon Sep 17 00:00:00 2001 From: "richard.she" <1950655269@qq.com> Date: Wed, 11 Jan 2023 17:28:49 +0800 Subject: [PATCH] fix error msg change condition --- certbot_dns_dnspod/dns_dnspod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot_dns_dnspod/dns_dnspod.py b/certbot_dns_dnspod/dns_dnspod.py index 71ffdee..0b5ced6 100644 --- a/certbot_dns_dnspod/dns_dnspod.py +++ b/certbot_dns_dnspod/dns_dnspod.py @@ -123,6 +123,6 @@ class _DNSPodLexiconClient(dns_common_lexicon.LexiconClient): .format(domain_name, e, ' ({0})'.format(hint) if hint else '')) def _handle_general_error(self, e, domain_name): - if not (str(e).startswith('Domain name invalid') or str(e).find('域名不正确') >= 0): + if not (str(e).startswith('Domain name invalid') or str(e).find('当前域名有误') >= 0): return errors.PluginError('Unexpected error determining zone identifier for {0}: {1}' .format(domain_name, e))