summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-02-25 19:22:36 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-02-25 19:22:36 +0100
commit0dceb1518718a1f4c694c9c8b00379a418fa5cb2 (patch)
treecc512c642cd7551477d0023c1b45fbf099ec77c3
parent04b22f6e94b579db076317777a63a72cf01e9499 (diff)
anidb: Handle "incomplete" year value.
-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(',')