Safety check

This commit is contained in:
Parker M. 2025-01-22 16:03:57 -06:00
parent 571a12d329
commit b48f2a1eff
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E

View File

@ -200,7 +200,9 @@ class Status(commands.Cog):
session.commit()
# If series and only a portion of episodes have been downloaded
if data.get("statistics").get("percentOfEpisodes"):
# If data["statistics"] exists and is not None
if "statistics" in data and data["statistics"] != None:
if "percentOfEpisodes" in data["statistics"]:
description += (
f"\n**{title} ({release_year})** - Status: `NOT"
" FOUND"