From: Andreas Monzner Date: Mon, 8 Jan 2007 17:15:59 +0000 (+0000) Subject: much simpler fix.. X-Git-Tag: 2.6.0~2487 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8faf3dbfd64d7a8f6943c171b0318470fdb5d7f7 much simpler fix.. --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 5b14a6d3..2c2b4a5b 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1908,9 +1908,7 @@ class InfoBarServiceErrorPopupSupport: eDVBServicePMTHandler.eventEOF: None } - if error is not None: - if error in errors: - error = errors[error] + error = errors.get(error) #this returns None when the key not exist in the dict if error is not None: Notifications.AddPopup(text = error, type = MessageBox.TYPE_ERROR, timeout = 5, id = "ZapError")