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:
Kovid Goyal 2020-09-27 22:40:13 +05:30
parent 639fc2dd51
commit b2a7264130
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2784,7 +2784,7 @@ class CatalogBuilder(object):
# Comments
comments = ''
if 'description' in book and book['description'] > '':
if book.get('description'):
comments = book['description']
# >>>> Populate the template <<<<