Skip to content

Commit d5c15f1

Browse files
authored
set empty list when tag_ids is empty(None) (#326)
1 parent f511728 commit d5c15f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def __init__(self, http: "TwitchHTTP", data: dict):
972972
self.started_at = parse_timestamp(data["started_at"])
973973
self.language: str = data["language"]
974974
self.thumbnail_url: str = data["thumbnail_url"]
975-
self.tag_ids: List[str] = data["tag_ids"]
975+
self.tag_ids: List[str] = data["tag_ids"] or []
976976
self.is_mature: bool = data["is_mature"]
977977

978978
def __repr__(self):

0 commit comments

Comments
 (0)