Check number of fields per citation

main
Bob Mottram 2020-11-06 11:23:42 +00:00
parent 1e31a05f19
commit 933a11ca72
1 changed files with 2 additions and 0 deletions

View File

@ -1239,6 +1239,8 @@ def createBlogPost(baseDir: str,
citations = f.readlines() citations = f.readlines()
for line in citations: for line in citations:
sections = line.strip().split(citationsSeparator) sections = line.strip().split(citationsSeparator)
if len(sections) != 3:
continue
dateStr = sections[0] dateStr = sections[0]
title = sections[1] title = sections[1]
link = sections[2] link = sections[2]