forked from openlp/openlp
- Attempt to fix jen
This commit is contained in:
parent
ebdad8519f
commit
39916d59ed
@ -84,16 +84,11 @@ 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
|
||||||
"""
|
"""
|
||||||
try:
|
db_path = get_db_path(plugin_name, db_file_name)
|
||||||
db_path = get_db_path(plugin_name, db_file_name)
|
log.exception('Error loading database: {db}'.format(db=db_path))
|
||||||
log.exception('Error loading database: {db}'.format(db=db_path))
|
critical_error_message_box(translate('OpenLP.Manager', 'Database Error'),
|
||||||
critical_error_message_box(translate('OpenLP.Manager', 'Database Error'),
|
translate('OpenLP.Manager',
|
||||||
translate('OpenLP.Manager',
|
'OpenLP cannot load your database.\n\nDatabase: {db}').format(db=db_path))
|
||||||
'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