From 372a2de40650cc1405a3f4c1c3775c29ec254bbc Mon Sep 17 00:00:00 2001 From: shmilylty Date: Wed, 28 Aug 2019 17:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=E8=A7=A3=E7=A0=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/common/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oneforall/common/request.py b/oneforall/common/request.py index 49b072f..bcc3dcc 100644 --- a/oneforall/common/request.py +++ b/oneforall/common/request.py @@ -74,7 +74,7 @@ async def fetch(session, url, semaphore): try: text = await resp.text(encoding='gb2312') # 先尝试用fb2312解码 except UnicodeDecodeError: - text = await resp.text() + text = await resp.text(errors='ignore') return resp, text