warnings aren't raised, so catching CompileError is enough
authorStefan Behnel <scoder@users.berlios.de>
Sun, 18 Jan 2009 18:43:54 +0000 (19:43 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 18 Jan 2009 18:43:54 +0000 (19:43 +0100)
Cython/Compiler/Visitor.py

index efd8ac97fe2b4a8ad3c97c445a2c74a5d868058f..034a2e67ef2942552efb3863c8601c1f7a46d26e 100644 (file)
@@ -147,7 +147,7 @@ class TreeVisitor(BasicVisitor):
         self.access_path.append((parent, attrname, idx))
         try:
             result = self.visit(child)
-        except (Errors.CompileWarning, Errors.CompileError):
+        except Errors.CompileError:
             raise
         except Exception, e:
             import sys