Such precision would not be needed in user errors, I suppose. The ones who would benefit from this can read log anyway.

This commit is contained in:
Mattias Põldaru 2011-12-21 10:21:37 +02:00
parent 35665ff336
commit c1d1d38eba
1 changed files with 3 additions and 6 deletions

View File

@ -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: