修改了一下判定
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(
|
async with session.get(
|
||||||
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
|
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
|
||||||
) as response:
|
) as response:
|
||||||
if not response.status == "200":
|
if not response.status == 200 or response.reason != "OK":
|
||||||
await sio.emit(
|
await sio.emit(
|
||||||
"sendMessage",
|
"sendMessage",
|
||||||
reply_msg.to_content(
|
reply_msg.to_content(
|
||||||
|
Loading…
Reference in New Issue
Block a user