Skip to content

Commit 97fac5e

Browse files
committed
Really skip copying replay file if it doesn't exit
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent f0cd840 commit 97fac5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookiecutter/hooks/post_gen_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def copy_replay_file() -> None:
141141

142142
if not src.exists():
143143
print(f"WARNING: No replay file found in {src}. Skipping...")
144+
return
144145

145146
try:
146147
_shutil.copyfile(src, dst)

0 commit comments

Comments
 (0)