Fix parse_option_value error catching.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 16 Aug 2008 09:04:30 +0000 (02:04 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 16 Aug 2008 09:04:30 +0000 (02:04 -0700)
Cython/Compiler/Parsing.py

index 8a900a66472ac0119e8ca8348505eb12e7d4b99a..10dd97bb8300f7027d27743523556d0c1fbd3241 100644 (file)
@@ -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()