From 13287553eef0fb9add3b414a9287a2054151fa65 Mon Sep 17 00:00:00 2001 From: LWR Date: Thu, 4 Apr 2024 21:55:55 +0800 Subject: [PATCH] fix: Fixed error when medal info is None in enter room event --- starbot_core/core/live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starbot_core/core/live.py b/starbot_core/core/live.py index 0b66e1b..641f7c2 100644 --- a/starbot_core/core/live.py +++ b/starbot_core/core/live.py @@ -770,7 +770,7 @@ async def on_enter_room(raw): fans_medal = None medal_info = base["fans_medal"] - if medal_info["target_id"]: + if medal_info and medal_info["target_id"]: ( fans_medal_level, fans_medal_name, fans_medal_uid, fans_medal_uname, fans_medal_room_id, fans_medal_face