From: Stefan Behnel Date: Sun, 18 Jan 2009 18:43:54 +0000 (+0100) Subject: warnings aren't raised, so catching CompileError is enough X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=565253cd7547ad5b0729cf00901e020d267d8eb7;p=cython.git warnings aren't raised, so catching CompileError is enough --- 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