fixed dictionary error where key queries had newlines

This commit is contained in:
alexzvk 2022-11-29 18:10:13 -05:00
parent b0e361daf7
commit 73a7ed491d

View File

@ -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")