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