aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-08 17:15:59 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-08 17:15:59 +0000
commit8faf3dbfd64d7a8f6943c171b0318470fdb5d7f7 (patch)
tree19fcf95ed51b512513235d9ab08b503a87476c2b /lib/python
parent3f35474ab204e99bf710724d949ac29b7d2029d7 (diff)
downloadenigma2-8faf3dbfd64d7a8f6943c171b0318470fdb5d7f7.tar.gz
enigma2-8faf3dbfd64d7a8f6943c171b0318470fdb5d7f7.zip
much simpler fix..
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 5b14a6d3..2c2b4a5b 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -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")