From c9741c75e261bccec645814e23b1b7ee687f9856 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 May 2017 14:13:41 +0530 Subject: [PATCH] Fix show_read_book_error not being set --- src/pyj/read_book/db.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/db.pyj b/src/pyj/read_book/db.pyj index f693b0f851..57c42d7fe2 100644 --- a/src/pyj/read_book/db.pyj +++ b/src/pyj/read_book/db.pyj @@ -128,7 +128,7 @@ class DB: # https://gist.github.com/nolanlawson/a841ee23436410f37168 try: req = transaction.objectStore(store).get(data) - except Exception: + except: if /Edge\/\d+/.test(window.navigator.userAgent): self.show_error(_('Cannot read book'), _( 'Reading of books is not supported on Microsoft Edge. Use a better' @@ -342,5 +342,5 @@ class DB: def get_db(callback, show_read_book_error): if not get_db.ans: - get_db.ans = DB(callback) + get_db.ans = DB(callback, show_read_book_error) return get_db.ans