diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index a5caf6ffea..b9de203d25 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -182,7 +182,7 @@ def ACQUISITION_ENTRY(book_id, updated, request_context): field_metadata = request_context.db.field_metadata mi = request_context.db.get_metadata(book_id) extra = [] - if mi.rating > 0: + if (mi.rating or 0) > 0: rating = rating_to_stars(mi.rating) extra.append(_('RATING: %s
')%rating) if mi.tags: