Commit 6ecbf233 authored by Daniel Morcuende's avatar Daniel Morcuende
Browse files

Merge branch 'fix' into 'master'

Fix FileExistsError exception when making existing dir

See merge request contrera/lstosa!76
parents 28aaabc6 23b4f7d9
......@@ -214,8 +214,7 @@ def produce_provenance():
# make folder log/ if does not exist
outpath = step_path / "log"
if not outpath.exists():
outpath.mkdir()
outpath.mkdir(exist_ok=True)
# define paths for prov products
log_path = outpath / f"{grain}_{base_filename}.log"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment