X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67b53c1cb06988394c35a6e965c99b72b67fe1be..8105da47caaa6e47246d73239d056491fa091ae5:/lib/python/Components/VariableValue.py 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