fix the KeyError from the previous commit
[enigma2.git] / lib / python / Components / NimManager.py
index c8b4adbe61d0f3c3544e48b806be2834ce111f10..0452adbe7adccbe3c2c02ab9f039dcebc7f31124 100644 (file)
@@ -127,7 +127,7 @@ class NimManager:
                def startElement(self, name, attrs):
                        if (name == "sat"):
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
-                               tpos = attrs.get('position',"")
+                               tpos = int(attrs.get('position',""))
                                if tpos < 0:
                                        tpos = 3600 + tpos
                                tname = attrs.get('name',"")
@@ -208,7 +208,7 @@ class NimManager:
                return self.sec.getSatList()
 
        def getSatDescription(self, pos):
-               return self.satellites[str(pos)]
+               return self.satellites[pos]
 
        def readSatsfromFile(self):
                self.satellites = { }