From: Andreas Monzner Date: Mon, 8 Jan 2007 16:31:43 +0000 (+0000) Subject: better fix X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=3f35474ab204e99bf710724d949ac29b7d2029d7 better fix --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 08bfaf3..5b14a6d 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")