We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702a0c3 commit eb4808fCopy full SHA for eb4808f
docs/changelog.rst
@@ -1,5 +1,10 @@
1
:orphan:
2
3
+Master
4
+======
5
+- TwitchIO
6
+ - Bug fixes
7
+ - Fix :func:`~twitchio.Client.search_categories` due to :attr:`~twitchio.Game.igdb_id` being added to :class:`~twitchio.Game`
8
9
2.6.0
10
======
twitchio/models.py
@@ -622,7 +622,7 @@ def __init__(self, data: dict):
622
self.id: int = int(data["id"])
623
self.name: str = data["name"]
624
self.box_art_url: str = data["box_art_url"]
625
- self.igdb_id: Optional[int] = int(data["igdb_id"]) if data["igdb_id"] else None
+ self.igdb_id: Optional[int] = data.get("igdb_id") and int(data["igdb_id"])
626
627
def __repr__(self):
628
return f"<Game id={self.id} name={self.name}>"
0 commit comments