Commit 0a36519e authored by zsbai's avatar zsbai Committed by tengattack

Update dns_dnspod.py

parent b8ce943b
...@@ -123,6 +123,6 @@ class _DNSPodLexiconClient(dns_common_lexicon.LexiconClient): ...@@ -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))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment