add debug

This commit is contained in:
Valentin CZERYBA 2023-03-13 21:35:32 +01:00
parent a6d642811e
commit 4b9a790f8a

View File

@ -13,9 +13,11 @@ def mkdirPath(path_dir, logger):
if not os.path.exists(repath):
logger.debug("Dossier crée : {0}".format(repath))
try:
os.mkdir(repath)
if len(repath) > 0:
os.mkdir(repath)
except Exception as err:
logger.error("Directory error : {0}".format(err))
logger.debug("Directory error : {0} {1} {2} {3} {4}".format(err, path_dir, repath, pathh, makedir))
exit(1)