summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/anidb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/anidb.py b/modules/anidb.py
index d9f75d6..bae2191 100644
--- a/modules/anidb.py
+++ b/modules/anidb.py
@@ -69,7 +69,7 @@ class Module:
return 'Failed to get data from anidb'
year, type, catlist, catweight, romaji, english, epcount, normalep, rating, ratingcount, temprating, tempcount, specialep = data
if '-' in year:
- syear, eyear = [int(x) for x in year.split('-')]
+ syear, eyear = [int(x) if x.isdigit() else '' for x in year.split('-')]
if syear == eyear:
year = syear
catlist = catlist.split(',')