add another syntax error case
This commit is contained in:
parent
6dcb343243
commit
cc4ae66345
|
@ -53,6 +53,8 @@ class RecordCollection():
|
||||||
raise FileParsingError(f"error parsing '{i}'")
|
raise FileParsingError(f"error parsing '{i}'")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if i[-1] != ":":
|
||||||
|
raise FileParsingError(f"colon must be on last character of '{i}'")
|
||||||
try:
|
try:
|
||||||
name = i.split(' ')[1][0:-1]
|
name = i.split(' ')[1][0:-1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|
Loading…
Reference in New Issue