From: Robert Bradshaw Date: Sat, 16 Aug 2008 09:04:30 +0000 (-0700) Subject: Fix parse_option_value error catching. X-Git-Tag: 0.9.8.1~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc77438d695412bab2a59e1c84f0fb81eef92dee;p=cython.git Fix parse_option_value error catching. --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 8a900a66..10dd97bb 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -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()