don't crash on empty configlist lines
authorFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 11 Jun 2010 21:05:36 +0000 (23:05 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 6 Oct 2010 21:44:48 +0000 (23:44 +0200)
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