From 73a7ed491d845b017891c2c8e1bd505428bbac01 Mon Sep 17 00:00:00 2001 From: alexzvk Date: Tue, 29 Nov 2022 18:10:13 -0500 Subject: [PATCH] fixed dictionary error where key queries had newlines --- hooks/post_gen_project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")