From 150c14f36b9773f65070208986a607d3782f66b2 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 1 Jan 2006 20:49:13 +0000 Subject: [PATCH 1/1] check for validity of parameter --- lib/python/Components/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 40a460c2..6897aa88 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -466,6 +466,8 @@ class configElement: if control == ConfigSlider: return str(data) elif control == configSelection: + if len(self.vals) < data + 1: + return "0" if isinstance(self.vals[data], str): return str(data) else: -- 2.30.2