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