From cc77438d695412bab2a59e1c84f0fb81eef92dee Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 16 Aug 2008 02:04:30 -0700 Subject: [PATCH] Fix parse_option_value error catching. --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2