From 659ac2920cc51e0f0b7ebd7ac80c88266e1a9930 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 5 May 2006 08:28:50 +0000 Subject: [PATCH] use if instead of use a assertion --- lib/python/Screens/InfoBarGenerics.py | 4 ++-- 1 file 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() -- 2.30.2