forked from openlp/openlp
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:
parent
35665ff336
commit
c1d1d38eba
@ -74,12 +74,9 @@ class OpenLP1Bible(BibleDB):
|
|||||||
u'SELECT id, testament_id, name, abbreviation FROM book')
|
u'SELECT id, testament_id, name, abbreviation FROM book')
|
||||||
except sqlite.DatabaseError as error:
|
except sqlite.DatabaseError as error:
|
||||||
log.exception(u'DatabaseError: %s' % error)
|
log.exception(u'DatabaseError: %s' % error)
|
||||||
if error == 'no such table: book':
|
# Please add an user error here!
|
||||||
# Please add an user error here!
|
# This file is not an openlp.org 1.x bible database.
|
||||||
# This file is not an openlp.org 1.x bible database.
|
return False
|
||||||
return False
|
|
||||||
else:
|
|
||||||
raise sqlite.DatabaseError(error)
|
|
||||||
books = cursor.fetchall()
|
books = cursor.fetchall()
|
||||||
self.wizard.progressBar.setMaximum(len(books) + 1)
|
self.wizard.progressBar.setMaximum(len(books) + 1)
|
||||||
for book in books:
|
for book in books:
|
||||||
|
Loading…
Reference in New Issue
Block a user