use if instead of use a assertion
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 5 May 2006 08:28:50 +0000 (08:28 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 5 May 2006 08:28:50 +0000 (08:28 +0000)
lib/python/Screens/InfoBarGenerics.py

index 7c335f1..a593822 100644 (file)
@@ -408,8 +408,8 @@ class InfoBarEPG:
                        self.eventView = None
                if ret:
                        dlgs=len(self.dlg_stack)
                        self.eventView = None
                if ret:
                        dlgs=len(self.dlg_stack)
-                       assert dlgs>0
-                       self.dlg_stack[dlgs-1].close(dlgs > 1)
+                       if dlgs > 0:
+                               self.dlg_stack[dlgs-1].close(dlgs > 1)
 
        def openMultiServiceEPG(self, withCallback=True):
                bouquets = self.servicelist.getBouquetList()
 
        def openMultiServiceEPG(self, withCallback=True):
                bouquets = self.servicelist.getBouquetList()