From 565253cd7547ad5b0729cf00901e020d267d8eb7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 18 Jan 2009 19:43:54 +0100 Subject: [PATCH] warnings aren't raised, so catching CompileError is enough --- Cython/Compiler/Visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index efd8ac97..034a2e67 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -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 -- 2.26.2