From: Stefan Behnel Date: Sun, 14 Dec 2008 12:48:53 +0000 (+0100) Subject: one more common exception silenced during constant folding X-Git-Tag: 0.11-beta~131 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b317d831e72388b44307d712505aecd9df55064d;p=cython.git one more common exception silenced during constant folding --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 703f1074..a58fb327 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -415,7 +415,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): node.calculate_constant_result() # if node.constant_result is not ExprNodes.not_a_constant: # print node.__class__.__name__, node.constant_result - except (ValueError, TypeError, IndexError, AttributeError): + except (ValueError, TypeError, KeyError, IndexError, AttributeError): # ignore all 'normal' errors here => no constant result pass except Exception: