forked from openlp/openlp
improved logging
This commit is contained in:
parent
335c804e8f
commit
d2301e016e
@ -66,8 +66,11 @@ def check_directory_exists(directory, do_not_log=False):
|
|||||||
try:
|
try:
|
||||||
if not os.path.exists(directory):
|
if not os.path.exists(directory):
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
except IOError:
|
except IOError as e:
|
||||||
pass
|
if not do_not_log:
|
||||||
|
log.exception('failed yo check/create if directury exists')
|
||||||
|
log.exception(e)
|
||||||
|
#pass
|
||||||
|
|
||||||
|
|
||||||
def get_frozen_path(frozen_option, non_frozen_option):
|
def get_frozen_path(frozen_option, non_frozen_option):
|
||||||
|
Loading…
Reference in New Issue
Block a user