forked from openlp/openlp
minor fixes
This commit is contained in:
parent
bbe4169c24
commit
edd1ed849a
@ -51,8 +51,10 @@ def trace_error_handler(logger):
|
||||
|
||||
:param logger: logger to use so traceback is logged to correct class
|
||||
"""
|
||||
log_string = "OpenLP Error trace"
|
||||
for tb in traceback.extract_stack():
|
||||
logger.error('Called by ' + tb[3] + ' at line ' + str(tb[1]) + ' in ' + tb[0])
|
||||
log_string = ('%s\n File %s at line %d \n\t called %s' % (log_string, tb[0], tb[1], tb[3]))
|
||||
logger.error(log_string)
|
||||
|
||||
|
||||
def check_directory_exists(directory, do_not_log=False):
|
||||
|
@ -561,7 +561,7 @@ class BiblesResourcesDB(QtCore.QObject, Manager):
|
||||
Return a book by name or abbreviation.
|
||||
|
||||
:param name: The name or abbreviation of the book.
|
||||
:param lower: True if the comparsion should be only lowercase
|
||||
:param lower: True if the comparison should be only lowercase
|
||||
"""
|
||||
log.debug('BiblesResourcesDB.get_book("%s")', name)
|
||||
if not isinstance(name, str):
|
||||
|
Loading…
Reference in New Issue
Block a user