本地实现records和tablib

This commit is contained in:
JrD
2020-08-29 00:42:02 +08:00
parent 6c79a8167e
commit 160d6e8af3
8 changed files with 1123 additions and 5 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ from stat import S_IXUSR
import tenacity
import requests
from pathlib import Path
from records import Record, RecordCollection
from common.records import Record, RecordCollection
from dns.resolver import Resolver
from common.domain import Domain
@@ -731,5 +731,5 @@ def decode_resp_text(resp):
content = str(content, encoding='gb18030', errors='strict')
except (LookupError, TypeError, UnicodeError):
# 最后尝试自动解码
content = str(content, errors='replace')
content = str(content, errors='replace')
return content