one more common exception silenced during constant folding
authorStefan Behnel <scoder@users.berlios.de>
Sun, 14 Dec 2008 12:48:53 +0000 (13:48 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 14 Dec 2008 12:48:53 +0000 (13:48 +0100)
Cython/Compiler/Optimize.py

index 703f1074e7f8cdd63d422ba6dbf5c54f8141a155..a58fb327b314a129c6bb27e76aa658c60db151dd 100644 (file)
@@ -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: