From d18cf9a25b2f844a433d70f444d50d6908e27586 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Nov 2010 08:25:55 -0700 Subject: [PATCH] ... --- src/calibre/library/catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index 1734e14d1d..19519d6d71 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -1707,7 +1707,7 @@ class EPUB_MOBI(CatalogPlugin): ttc += 1 ''' - for tag in title['tags']: + for tag in title.get('tags', []): aTag = Tag(soup,'a') #print "aTag: %s" % "Genre_%s.html" % re.sub("\W","",tag.lower()) aTag['href'] = "Genre_%s.html" % re.sub("\W","",tag.lower())