From 9ace786618bc1628590b52da215efeae8329d7d9 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Fri, 11 Jul 2008 14:03:09 +0000 Subject: [PATCH 1/1] fix crash on setValues exceeding 32 bit range --- lib/python/Components/VariableValue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/VariableValue.py b/lib/python/Components/VariableValue.py index 7fde0af1..feb45342 100644 --- a/lib/python/Components/VariableValue.py +++ b/lib/python/Components/VariableValue.py @@ -7,7 +7,10 @@ class VariableValue(object): def setValue(self, value): self.__value = value if self.instance: - self.instance.setValue(self.__value) + try: + self.instance.setValue(self.__value) + except TypeError: + self.instance.setValue(0) def getValue(self): return self.__value -- 2.30.2