diff --git a/posts.py b/posts.py index 507448e7..75f73f8d 100644 --- a/posts.py +++ b/posts.py @@ -1238,6 +1238,8 @@ def createBlogPost(baseDir: str, with open(citationsFilename, "r") as f: citations = f.readlines() for line in citations: + if citationsSeparator not in line: + continue sections = line.strip().split(citationsSeparator) if len(sections) != 3: continue