From 8d30c3434a973674b2b00b952b8f2d65678dfa57 Mon Sep 17 00:00:00 2001 From: GRiker Date: Sat, 8 Sep 2012 04:24:20 -0600 Subject: [PATCH] Handled condition when source book has no tags field. --- src/calibre/library/catalogs/epub_mobi_builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/library/catalogs/epub_mobi_builder.py b/src/calibre/library/catalogs/epub_mobi_builder.py index c93b318966..3fc0df58b2 100644 --- a/src/calibre/library/catalogs/epub_mobi_builder.py +++ b/src/calibre/library/catalogs/epub_mobi_builder.py @@ -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']: