aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-29 02:40:55 +0000
committerlloyd <[email protected]>2014-12-29 02:40:55 +0000
commit32674508acebe1a0454a1267c01a5fb7db7f485d (patch)
treec4bb40184bb42e99da6b18446240e5ea8ac1b118 /configure.py
parentdfc93a3c8992b067f66ca148ac91c24489f493fc (diff)
Handle malformed info.txt file
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 87dd3af78..f0c3ae963 100755
--- a/configure.py
+++ b/configure.py
@@ -545,6 +545,8 @@ def lex_me_harder(infofile, to_obj, allowed_groups, name_val_pairs):
# Dirty hack
if token == 'define':
nxt = lexer.get_token()
+ if not nxt:
+ raise LexerError('No version set for API', lexer.lineno)
if not re.match('^[0-9]{8}$', nxt):
raise LexerError('Bad API rev "%s"' % (nxt), lexer.lineno)
to_obj.__dict__[token].append(nxt)