mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
🐛 修复B站订阅没有动态的用户时报错的问题(第二次)
This commit is contained in:
@@ -100,7 +100,7 @@ class Bilibili(NewMessage):
|
||||
res.raise_for_status()
|
||||
res_dict = res.json()
|
||||
if res_dict["code"] == 0:
|
||||
return res_dict["data"].get("cards")
|
||||
return res_dict["data"].get("cards", [])
|
||||
else:
|
||||
raise ApiError(res.request.url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user