Watched: Use get for season

Use get to avoid KeyError if season doesnt exist.
This commit is contained in:
Luis Garcia
2024-04-14 17:08:49 -06:00
parent 402c286742
commit 9b38729b95

View File

@@ -248,7 +248,7 @@ def filter_episode_watched_list_2_keys_dict(
# Iterate through episode_watched_list_2_keys_dict["season"] and find the indecies that match season
for season_index, season_value in enumerate(
episode_watched_list_2_keys_dict["season"]
episode_watched_list_2_keys_dict.get("season")
):
if season_value == season:
season_indecies.append(season_index)