add debug
This commit is contained in:
parent
a6d642811e
commit
4b9a790f8a
@ -13,9 +13,11 @@ def mkdirPath(path_dir, logger):
|
|||||||
if not os.path.exists(repath):
|
if not os.path.exists(repath):
|
||||||
logger.debug("Dossier crée : {0}".format(repath))
|
logger.debug("Dossier crée : {0}".format(repath))
|
||||||
try:
|
try:
|
||||||
os.mkdir(repath)
|
if len(repath) > 0:
|
||||||
|
os.mkdir(repath)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logger.error("Directory error : {0}".format(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)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
@ -236,4 +238,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if args.img is False:
|
if args.img is False:
|
||||||
page_src = getImg(webpage, logger)
|
page_src = getImg(webpage, logger)
|
||||||
downloadPage(page_src, "{0}/{1}/{2}".format(args.dir, o.path, "img"), logger)
|
downloadPage(page_src, "{0}/{1}/{2}".format(args.dir, o.path, "img"), logger)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user