When CBI is read in, make sure the credits and tags are at least empty lists

git-svn-id: http://comictagger.googlecode.com/svn/trunk@206 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-12-05 00:20:06 +00:00
parent c845c786e4
commit 3689317518

View File

@ -62,6 +62,12 @@ class ComicBookInfo:
metadata.criticalRating = xlate( 'rating' )
metadata.tags = xlate( 'tags' )
# make sure credits and tags are at least empty lists and not None
if metadata.credits is None:
metadata.credits = []
if metadata.tags is None:
metadata.tags = []
#need to massage the language string to be ISO
if metadata.language is not None:
# reverse look-up