Commit b317d831 authored by Stefan Behnel's avatar Stefan Behnel

one more common exception silenced during constant folding

parent 785caeef
...@@ -415,7 +415,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): ...@@ -415,7 +415,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
node.calculate_constant_result() node.calculate_constant_result()
# if node.constant_result is not ExprNodes.not_a_constant: # if node.constant_result is not ExprNodes.not_a_constant:
# print node.__class__.__name__, node.constant_result # 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 # ignore all 'normal' errors here => no constant result
pass pass
except Exception: except Exception:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment