tengattack / certbot-dns-dnspod

A certbot dns plugin to obtain certificates using dnspod.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_find_domain_id 抛异常 导致报错

hotraygroup opened this issue · comments

通过接口https://dnsapi.cn/Domain.Infohttps://docs.dnspod.cn/api/domain-info/)获取域名id时,如果被探测域名不存在,会返回错误码【13 当前域名有误,请返回重新操作。】,这种是正常的,应该跳过。现在的判定条件是【 not (str(e).startswith('Domain name invalid') or str(e).find('域名不正确') >= 0)】 会导致抛异常。

我这边现在的返回是“当前域名未添加解析,请返回域名列表”

我这边现在的返回是“当前域名未添加解析,请返回域名列表”

应该已经修复