improved logging

This commit is contained in:
Tomas Groth 2015-04-02 13:50:50 +01:00
parent 335c804e8f
commit d2301e016e
1 changed files with 5 additions and 2 deletions

View File

@ -66,8 +66,11 @@ def check_directory_exists(directory, do_not_log=False):
try:
if not os.path.exists(directory):
os.makedirs(directory)
except IOError:
pass
except IOError as e:
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):