From b95d0a537d3c7bfc095244a6acef79bb74555daf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Nov 2017 07:23:43 +0530 Subject: [PATCH] Fix transient error during startup when using subtititle templates in the cover browser --- src/calibre/gui2/cover_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/cover_flow.py b/src/calibre/gui2/cover_flow.py index 1ada278cbe..fa632d97ff 100644 --- a/src/calibre/gui2/cover_flow.py +++ b/src/calibre/gui2/cover_flow.py @@ -133,6 +133,8 @@ if pictureflow is not None: def subtitle(self, index): try: db = self.model.db.new_api + if not self.template_inited: + self.init_template(db) field = db.pref('cover_browser_subtitle_field', 'rating') if field and field != 'none': book_id = self.model.id(index)