raise exception when unknown setup id is searched for
[enigma2.git] / 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")
+       raise "unknown setup id '%s'!" % repr(id)