diff --git a/src/calibre/gui2/store/search/models.py b/src/calibre/gui2/store/search/models.py index f29f1bf280..9112f40e8c 100644 --- a/src/calibre/gui2/store/search/models.py +++ b/src/calibre/gui2/store/search/models.py @@ -231,7 +231,13 @@ class Matches(QAbstractItemModel): if col == 1: return ('

%s

' % result.title) elif col == 2: - return ('

' + _('Detected price as: %s. Check with the store before making a purchase to verify this price is correct. This price often does not include promotions the store may be running.') % result.price + '

') # noqa + if result.price: + return ('

' + _( + 'Detected price as: %s. Check with the store before making a purchase' + ' to verify this price is correct. This price often does not include' + ' promotions the store may be running.') % result.price + '

') + return '

' + _( + 'No price was found') elif col == 3: if result.drm == SearchResult.DRM_LOCKED: return ('

' + _('This book as been detected as having DRM restrictions. This book may not work with your reader and you will have limitations placed upon you as to what you can do with this book. Check with the store before making any purchases to ensure you can actually read this book.') + '

') # noqa