better fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 16:31:43 +0000 (16:31 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 16:31:43 +0000 (16:31 +0000)
lib/python/Screens/InfoBarGenerics.py

index 08bfaf35865804a0aef6bdda534307c6ff1c8ef3..5b14a6d3ff752fb3024a43eb67fd6f563b235218 100644 (file)
@@ -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")