mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
修改了一下判定
This commit is contained in:
parent
386ee4413a
commit
5c7dfe9e88
2
main.py
2
main.py
|
@ -209,7 +209,7 @@ async def add_message(data: Dict[str, Any]):
|
|||
async with session.get(
|
||||
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
|
||||
) as response:
|
||||
if not response.status == "200":
|
||||
if not response.status == 200 or response.reason != "OK":
|
||||
await sio.emit(
|
||||
"sendMessage",
|
||||
reply_msg.to_content(
|
||||
|
|
Loading…
Reference in New Issue
Block a user