From c1d1d38eba8561792786d71ac78a694cd845efd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Wed, 21 Dec 2011 10:21:37 +0200 Subject: [PATCH] Such precision would not be needed in user errors, I suppose. The ones who would benefit from this can read log anyway. --- openlp/plugins/bibles/lib/openlp1.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/openlp/plugins/bibles/lib/openlp1.py b/openlp/plugins/bibles/lib/openlp1.py index 741dfcc7a..7701f1828 100644 --- a/openlp/plugins/bibles/lib/openlp1.py +++ b/openlp/plugins/bibles/lib/openlp1.py @@ -74,12 +74,9 @@ class OpenLP1Bible(BibleDB): u'SELECT id, testament_id, name, abbreviation FROM book') except sqlite.DatabaseError as error: log.exception(u'DatabaseError: %s' % error) - if error == 'no such table: book': - # Please add an user error here! - # This file is not an openlp.org 1.x bible database. - return False - else: - raise sqlite.DatabaseError(error) + # Please add an user error here! + # This file is not an openlp.org 1.x bible database. + return False books = cursor.fetchall() self.wizard.progressBar.setMaximum(len(books) + 1) for book in books: