aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-05-05 08:28:50 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-05-05 08:28:50 +0000
commit659ac2920cc51e0f0b7ebd7ac80c88266e1a9930 (patch)
tree27e0b94bb74dd49b7acd90bae7ca5edcb43e5b17 /lib/python
parent46b8f96749c596e31d70610c80e64fd1561c007a (diff)
downloadenigma2-659ac2920cc51e0f0b7ebd7ac80c88266e1a9930.tar.gz
enigma2-659ac2920cc51e0f0b7ebd7ac80c88266e1a9930.zip
use if instead of use a assertion
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 7c335f1d..a5938222 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -408,8 +408,8 @@ class InfoBarEPG:
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()