From b317d831e72388b44307d712505aecd9df55064d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 14 Dec 2008 13:48:53 +0100 Subject: [PATCH] one more common exception silenced during constant folding --- Cython/Compiler/Optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2