From 933a11ca7293a8e1e5589790305afe827b4e7bb4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 11:23:42 +0000 Subject: [PATCH] Check number of fields per citation --- posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts.py b/posts.py index 444e3228a..507448e7a 100644 --- a/posts.py +++ b/posts.py @@ -1239,6 +1239,8 @@ def createBlogPost(baseDir: str, citations = f.readlines() for line in citations: sections = line.strip().split(citationsSeparator) + if len(sections) != 3: + continue dateStr = sections[0] title = sections[1] link = sections[2]