Skip to content

Commit

Permalink
Except TypeError when initializing year published
Browse files Browse the repository at this point in the history
  • Loading branch information
SukiCZ committed Jan 31, 2024
1 parent 912cf17 commit b0652d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boardgamegeek/objects/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def __init__(self, data):

try:
self._year_published = fix_unsigned_negative(data["yearpublished"])
except KeyError:
except (KeyError, TypeError):
self._year_published = None

for version in data.get("versions", []):
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Changelog
=========


1.1.6
-----

* Except TypeError when initializing year published

1.1.5
-----

Expand Down

0 comments on commit b0652d8

Please sign in to comment.