From e69ceebfc584373bfec446033dd1de2fa48560fe Mon Sep 17 00:00:00 2001 From: Daniel Roy Greenfeld Date: Tue, 16 Jan 2018 22:06:28 -0800 Subject: [PATCH] Possible fix for --- hooks/post_gen_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index bffa783f..cfe2df12 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -130,9 +130,9 @@ def remove_docker_files(): Removes files needed for docker if it isn't going to be used """ for filename in ["dev.yml", "docker-compose.yml", ".dockerignore"]: - os.remove(os.path.join( - PROJECT_DIRECTORY, filename - )) + filename = os.path.join(PROJECT_DIRECTORY, filename) + if os.path.exists(filename): + os.remove(filename) shutil.rmtree(os.path.join( PROJECT_DIRECTORY, "compose"