aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 08bfaf35..5b14a6d3 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -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")