Handled condition when source book has no tags field.

This commit is contained in:
GRiker 2012-09-08 04:24:20 -06:00
parent fccdb72b8b
commit 8d30c3434a

View File

@ -877,9 +877,11 @@ class CatalogBuilder(object):
this_title['prefix'] = self.discover_prefix(record)
this_title['tags'] = []
if record['tags']:
this_title['tags'] = self.filter_excluded_genres(record['tags'],
self.opts.exclude_genre)
if record['formats']:
formats = []
for format in record['formats']: