add another syntax error case

This commit is contained in:
randomuser 2021-11-23 11:23:27 -06:00
parent 6dcb343243
commit cc4ae66345
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class RecordCollection():
raise FileParsingError(f"error parsing '{i}'")
else:
if i[-1] != ":":
raise FileParsingError(f"colon must be on last character of '{i}'")
try:
name = i.split(' ')[1][0:-1]
except IndexError: