ignore empty rows

This commit is contained in:
dechert
2021-06-15 18:36:18 +02:00
parent e8be969e98
commit 16d67c49f4
4 changed files with 36 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ def write_markdown_file(csv_path):
print("name_of_category")
print(name_of_category)
current_category = name_of_category
# do nothing if row is empty
elif line.split(",")[0] is "":
pass
else:
handle_q_and_a_row(line, list_of_q_and_as, current_category)
# break