Commit cc77438d authored by Robert Bradshaw's avatar Robert Bradshaw

Fix parse_option_value error catching.

parent daad5d3e
......@@ -2359,7 +2359,7 @@ def p_compiler_directive_comments(s):
try:
value = Options.parse_option_value(str(name), str(m.group(2).strip()))
except ValueError, e:
s.error(e.message, fatal=False)
s.error(e.args[0], fatal=False)
if value is not None: # can be False!
result[name] = value
s.next()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment