header.py

changeset 67
afaa4d3bc3e5
parent 60
b8fac2477fc8
child 69
a24c4490d9f2
--- a/header.py	Sat Jun 22 23:14:40 2019 +0300
+++ b/header.py	Sat Jun 22 23:35:03 2019 +0300
@@ -159,6 +159,8 @@
                 result.cmdline = self.groups[0]
             else:
                 self.parse_error("couldn't understand header syntax: " + repr(header_entry.text))
+        if not result.filetype:
+            self.parse_error('LDRAW_ORG line is missing')
         return {
             'header': result,
             'end-index': self.cursor + 1,

mercurial