Skip to content

Commit 0e21eaa

Browse files
author
a.pirogov
committed
fix: pass keep_on_failure flag to tempdir of template
1 parent abdfc95 commit 0e21eaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/fair_python_cookiecutter

src/fair_python_cookiecutter/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def create_repository(
1919
cc_json = CookiecutterJson.from_config(conf)
2020
cc_args = cc_args or {}
2121

22-
with TempDir() as tmp_root:
22+
with TempDir(keep=keep_on_fail) as tmp_root:
2323
copy_template(tmp_root, cookiecutter_json=cc_json)
2424
cookiecutter(
2525
template=str(tmp_root), # copy of template

0 commit comments

Comments
 (0)