From 7606ef8be4625228cf6f232a8fb8ec20e1d34fc2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 May 2017 14:25:34 +0530 Subject: [PATCH] ... --- src/calibre/gui2/store/search/models.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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