forked from openlp/openlp
- For jenkins
This commit is contained in:
parent
7ee7ef8846
commit
be9c394b63
@ -84,12 +84,15 @@ def handle_db_error(self, plugin_name, db_file_name):
|
|||||||
:param db_file_name: File name of database
|
:param db_file_name: File name of database
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
db_path = get_db_path(plugin_name, db_file_name)
|
try:
|
||||||
log.exception('Error loading database: {db}'.format(db=db_path))
|
db_path = get_db_path(plugin_name, db_file_name)
|
||||||
critical_error_message_box(translate('OpenLP.Manager', 'Database Error'),
|
log.exception('Error loading database: {db}'.format(db=db_path))
|
||||||
translate('OpenLP.Manager',
|
critical_error_message_box(translate('OpenLP.Manager', 'Database Error'),
|
||||||
'OpenLP cannot load your database.\n\nDatabase: {db}').format(db=db_path))
|
translate('OpenLP.Manager',
|
||||||
|
'OpenLP cannot load your database.\n\nDatabase: {db}').format(db=db_path))
|
||||||
|
except TypeError or FileNotFoundError:
|
||||||
|
log.exception('Failed to find data folder path.')
|
||||||
|
return
|
||||||
|
|
||||||
def init_url(plugin_name, db_file_name=None):
|
def init_url(plugin_name, db_file_name=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user