aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/DreamInfoHandler.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-06-04 11:39:12 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-06-04 11:39:12 +0200
commitd18113ea974703c0c6fc0396e83dbf59bc9e5b26 (patch)
tree27964cd64d96e9de026d694d2b687d3e8b90867c /lib/python/Components/DreamInfoHandler.py
parentb23e0f70b3b0e6815b784f29cbe7d09982116c41 (diff)
downloadenigma2-d18113ea974703c0c6fc0396e83dbf59bc9e5b26.tar.gz
enigma2-d18113ea974703c0c6fc0396e83dbf59bc9e5b26.zip
DreamInfoHandler.py: no fatal error when no language element in info tag is found (this fixes no more working default servicelist handling)
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
-rwxr-xr-xlib/python/Components/DreamInfoHandler.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py
index 6004e1f3..6cf3b004 100755
--- a/lib/python/Components/DreamInfoHandler.py
+++ b/lib/python/Components/DreamInfoHandler.py
@@ -50,8 +50,10 @@ class InfoHandler(xml.sax.ContentHandler):
prerequisites[name].append(str(attrs["type"]))
if name == "info":
+ self.foundTranslation = None
+ self.data = ""
if not attrs.has_key("language"):
- self.printError(str(name) + " tag with no language attribute")
+ print "info tag with no language attribute"
else:
if attrs["language"] == 'en': # read default translations
self.foundTranslation = False
@@ -59,9 +61,6 @@ class InfoHandler(xml.sax.ContentHandler):
elif attrs["language"] == self.language:
self.foundTranslation = True
self.data = ""
- else:
- self.foundTranslation = None
- self.data = ""
if name == "files":
if attrs.has_key("type"):