mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
忽略解码错误
This commit is contained in:
@@ -74,7 +74,7 @@ async def fetch(session, url, semaphore):
|
|||||||
try:
|
try:
|
||||||
text = await resp.text(encoding='gb2312') # 先尝试用fb2312解码
|
text = await resp.text(encoding='gb2312') # 先尝试用fb2312解码
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
text = await resp.text()
|
text = await resp.text(errors='ignore')
|
||||||
return resp, text
|
return resp, text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user