forked from openlp/openlp
Log an error instead of debug output
This commit is contained in:
parent
3e5eb698d9
commit
3ae978e4be
|
@ -206,7 +206,7 @@ def str_to_path(string):
|
||||||
:rtype: openlp.core.common.path.Path | None
|
:rtype: openlp.core.common.path.Path | None
|
||||||
"""
|
"""
|
||||||
if not isinstance(string, str):
|
if not isinstance(string, str):
|
||||||
log.debug('parameter \'string\' must be of type str, got {} which is a {} instead'.format(string, type(string)))
|
log.error('parameter \'string\' must be of type str, got {} which is a {} instead'.format(string, type(string)))
|
||||||
return None
|
return None
|
||||||
if string == '':
|
if string == '':
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue