mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Catalog generation: Fix a regression that broke generating catalogs if books with no comments are present. Fixes #1897467 [failure to create catalog in epub format with R 5.0 and 5.01](https://bugs.launchpad.net/calibre/+bug/1897467)
This commit is contained in:
parent
639fc2dd51
commit
b2a7264130
@ -2784,7 +2784,7 @@ class CatalogBuilder(object):
|
|||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
comments = ''
|
comments = ''
|
||||||
if 'description' in book and book['description'] > '':
|
if book.get('description'):
|
||||||
comments = book['description']
|
comments = book['description']
|
||||||
|
|
||||||
# >>>> Populate the template <<<<
|
# >>>> Populate the template <<<<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user