Skip to content

Commit

Permalink
None failsafe for episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Apr 4, 2020
1 parent 5a6ee2d commit 8c9fa83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tekore/model/episode.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ class SimpleEpisodePaging(OffsetPaging):
items = List[SimpleEpisode]

def __post_init__(self):
self.items = [SimpleEpisode(**i) for i in self.items]
self.items = [
SimpleEpisode(**i) if i is not None else None
for i in self.items
]

0 comments on commit 8c9fa83

Please sign in to comment.