diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-11 14:03:09 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-11 14:03:09 +0000 |
| commit | 9ace786618bc1628590b52da215efeae8329d7d9 (patch) | |
| tree | a9e58867dc5a144c147e63401775e37473e246d0 /lib/python/Components/VariableValue.py | |
| parent | f06af856d2a0210bf7931f800ecb7ad13fbf659a (diff) | |
| download | enigma2-9ace786618bc1628590b52da215efeae8329d7d9.tar.gz enigma2-9ace786618bc1628590b52da215efeae8329d7d9.zip | |
fix crash on setValues exceeding 32 bit range
Diffstat (limited to 'lib/python/Components/VariableValue.py')
| -rw-r--r-- | lib/python/Components/VariableValue.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
