From cc4ae66345d61e41e4609fef39adb96bb8a3e0b9 Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 23 Nov 2021 11:23:27 -0600 Subject: [PATCH] add another syntax error case --- record.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/record.py b/record.py index e84e10e..f3bf52f 100644 --- a/record.py +++ b/record.py @@ -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: