much simpler fix..
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 17:15:59 +0000 (17:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 17:15:59 +0000 (17:15 +0000)
lib/python/Screens/InfoBarGenerics.py

index 5b14a6d..2c2b4a5 100644 (file)
@@ -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")