Skip to content

Commit

Permalink
Plugin sonarr: fix exception for series without airTime
Browse files Browse the repository at this point in the history
  • Loading branch information
alturiak committed Nov 8, 2022
1 parent 657f183 commit c8e3cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sonarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __init__(self, series_dict: Dict, tags: Dict[int, Tag], profiles: Dict[int,
if series_dict.get("previousAiring"):
self.previousAiring = isoparse(series_dict.get("previousAiring"))
self.network: str = series_dict["network"]
self.airTime: str = series_dict["airTime"]
self.airTime: str or None = series_dict.get("airTime")
self.images: List[Dict] = series_dict["images"]
self.year: datetime.date.year = series_dict["year"]
self.path: str = series_dict["path"]
Expand Down

0 comments on commit c8e3cc1

Please sign in to comment.