raise exception when unknown setup id is searched for
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 20 Oct 2007 08:21:33 +0000 (08:21 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 20 Oct 2007 08:21:33 +0000 (08:21 +0000)
lib/python/Screens/Setup.py

index 9c5c1e7dd72275df00d03f312b2b7ae10bd9e382..2452eef90bb3cfd53ad93893160a77103a561ac1 100644 (file)
@@ -133,3 +133,4 @@ def getSetupTitle(id):
        for x in elementsWithTag(xmldata, "setup"):
                if x.getAttribute("key") == id:
                        return x.getAttribute("title").encode("UTF-8")
        for x in elementsWithTag(xmldata, "setup"):
                if x.getAttribute("key") == id:
                        return x.getAttribute("title").encode("UTF-8")
+       raise "unknown setup id '%s'!" % repr(id)