Commit 9de4dbae authored by Stefan Behnel's avatar Stefan Behnel

catch ArithmeticError during constant folding => not constant

parent 7c41b1b8
......@@ -1757,7 +1757,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, KeyError, IndexError, AttributeError):
except (ValueError, TypeError, KeyError, IndexError, AttributeError, ArithmeticError):
# ignore all 'normal' errors here => no constant result
pass
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