Skip to content

Commit

Permalink
fix: render.build_child ignores errors on existing directory
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Nov 10, 2024
1 parent 2950a61 commit 1049e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ozi_core/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def build_child(env: Environment, parent: str, child: Path) -> None:
:param child: path to a new child directory
:type child: Path
"""
child.mkdir(parents=True)
child.mkdir(parents=True, exist_ok=True)
parent = parent.rstrip('/')
heirs = parent.split('/')
if len(heirs) > 1:
Expand Down

0 comments on commit 1049e9a

Please sign in to comment.