diff options
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 2 |
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) |