don't crash on empty configlist lines
[vuplus_dvbapp] / lib / python / Components / ConfigList.py
index ffbc69a..5a02c38 100755 (executable)
@@ -88,7 +88,7 @@ class ConfigList(HTMLComponent, GUIComponent, object):
 
                if l is not None:
                        for x in l:
-                               assert isinstance(x[1], ConfigElement), "entry in ConfigList " + str(x[1]) + " must be a ConfigElement"
+                               assert isinstance(x, ConfigElement), "entry in ConfigList " + str(x) + " must be a ConfigElement"
 
        def getList(self):
                return self.__list