fix-fix configlist assertion (add #188)
[enigma2.git] / lib / python / Components / ConfigList.py
index 5a02c38d7f9722aafe2d07d4e46de12f7c745d5f..24f917f76398c109e1f1000914248296fdfcaf06 100755 (executable)
@@ -88,7 +88,7 @@ class ConfigList(HTMLComponent, GUIComponent, object):
 
                if l is not None:
                        for x in l:
-                               assert isinstance(x, ConfigElement), "entry in ConfigList " + str(x) + " must be a ConfigElement"
+                               assert len(x) < 2 or isinstance(x[1], ConfigElement), "entry in ConfigList " + str(x[1]) + " must be a ConfigElement"
 
        def getList(self):
                return self.__list