much simpler fix..
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index 94f5c211c19a46a72aabc2fb2c990f2c090223bf..2c2b4a5b684428c74489953e3e2ed91895d20a7b 100644 (file)
@@ -1908,10 +1908,7 @@ class InfoBarServiceErrorPopupSupport:
                        eDVBServicePMTHandler.eventEOF: None
                }
 
-               if error not in errors:
-                       error = None
-
-               error = error is not None and 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")