fix the KeyError from the previous commit
[enigma2.git] / lib / python / Components / NimManager.py
index 3bc47ec366d380c01f6aba0d0a04ba99db1f49e2..0452adbe7adccbe3c2c02ab9f039dcebc7f31124 100644 (file)
@@ -129,9 +129,7 @@ class NimManager:
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
                                tpos = int(attrs.get('position',""))
                                if tpos < 0:
-                                       print "negative"
                                        tpos = 3600 + tpos
-                               print "[NimManager.py] tpos:", tpos
                                tname = attrs.get('name',"")
                                self.satellites[tpos] = tname
                                self.satList.append( (tname, tpos) )
@@ -210,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 = { }