From 63b3bad4be9ab64628f094a98a1e63e4ff72c524 Mon Sep 17 00:00:00 2001 From: Ivanq Date: Thu, 25 Mar 2021 22:34:27 +0300 Subject: [PATCH] Ignore empty lines in add-from-issue.py --- add-from-issue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-from-issue.py b/add-from-issue.py index 9ed59512..03b7ea50 100644 --- a/add-from-issue.py +++ b/add-from-issue.py @@ -12,7 +12,7 @@ for info, content in zip(parts[::2], parts[1::2]): author = info_dict["author"] - content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n")] + content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n") if line.strip()] for i in range(len(content_lines) - 1): if content_lines[i].lower().startswith("name:") and content_lines[i + 1].lower().startswith("link:"): if not os.path.isfile(f"_data/signed/{author}.yaml"):