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 5b14a6d3ff752fb3024a43eb67fd6f563b235218..2c2b4a5b684428c74489953e3e2ed91895d20a7b 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")