Browse Source

fix error msg change condition

richard.she 1 year ago
parent
commit
b8ce943b11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      certbot_dns_dnspod/dns_dnspod.py

+ 1 - 1
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 ''))
                                   .format(domain_name, e, ' ({0})'.format(hint) if hint else ''))
 
 
     def _handle_general_error(self, e, domain_name):
     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}'
             return errors.PluginError('Unexpected error determining zone identifier for {0}: {1}'
                                       .format(domain_name, e))
                                       .format(domain_name, e))