mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-15 04:33:01 +08:00
Merge pull request #111 from felinae98/fix-get-status-err
fix: 修复 bilibili-live 中获取状态错误后产生的错误行为
This commit is contained in:
commit
6387f77072
@ -201,7 +201,7 @@ class Bilibililive(StatusChange):
|
|||||||
info["cover"] = res_dict["data"]["live_room"]["cover"]
|
info["cover"] = res_dict["data"]["live_room"]["cover"]
|
||||||
return info
|
return info
|
||||||
else:
|
else:
|
||||||
raise self.ParseTargetException(res.text)
|
raise self.FetchError()
|
||||||
|
|
||||||
def compare_status(self, target: Target, old_status, new_status) -> list[RawPost]:
|
def compare_status(self, target: Target, old_status, new_status) -> list[RawPost]:
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user