Skip to content

Commit

Permalink
fix: Fixed error when medal info is None in enter room event
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlwr committed Apr 4, 2024
1 parent 64ba3fe commit 1328755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starbot_core/core/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1328755

Please sign in to comment.