diff --git a/cleanup-roster.py b/cleanup-roster.py
index b5e6a68..b80e95a 100644
--- a/cleanup-roster.py
+++ b/cleanup-roster.py
@@ -86,7 +86,7 @@ def write_csv(file, student_list, fields):
# print(line)
- # now we check if a line that starts with "
"
+ # now we check if the line starts with " | "
m = re.match(r' | ]*>(.*) | ', line)
if m:
if student is None:
@@ -94,8 +94,9 @@ def write_csv(file, student_list, fields):
student.add_field(m.group(1))
previous = ''
else:
- # if there is need more lines
+ # if the line does not have the ending tag, more lines are needed
previous = line
+
except FileNotFoundError as e:
print(e)
exit(1)