diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 8a2b22c75..a8898e8e7 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -330,7 +330,8 @@ def handle_licenses(): } with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f: selected_title = f.readline() - + selected_title.rstrip() + if selected_title == "Not open source\n": os.remove("CONTRIBUTORS.txt") shutil.rmtree("licenses")