From 3f35474ab204e99bf710724d949ac29b7d2029d7 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 8 Jan 2007 16:31:43 +0000 Subject: better fix --- lib/python/Screens/InfoBarGenerics.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/python') diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 08bfaf35..5b14a6d3 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1908,10 +1908,9 @@ class InfoBarServiceErrorPopupSupport: eDVBServicePMTHandler.eventEOF: None } - if error not in errors: - error = None - - error = error and errors[error] + if error is not None: + if error in errors: + error = errors[error] if error is not None: Notifications.AddPopup(text = error, type = MessageBox.TYPE_ERROR, timeout = 5, id = "ZapError") -- cgit v1.2.3