Safety check
This commit is contained in:
parent
571a12d329
commit
b48f2a1eff
@ -200,7 +200,9 @@ class Status(commands.Cog):
|
|||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
# If series and only a portion of episodes have been downloaded
|
# 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 += (
|
description += (
|
||||||
f"\n**{title} ({release_year})** - Status: `NOT"
|
f"\n**{title} ({release_year})** - Status: `NOT"
|
||||||
" FOUND"
|
" FOUND"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user