aboutsummaryrefslogtreecommitdiff
path: root/RecordTimer.py
diff options
context:
space:
mode:
authorAxel Buehning <axel.buehning@multimedia-labs.de>2006-01-26 15:32:30 +0000
committerAxel Buehning <axel.buehning@multimedia-labs.de>2006-01-26 15:32:30 +0000
commit435dfb5a2e49ec3957f05359e883f3246481fdf6 (patch)
treea096db1dd4a4aac1614fa0e1e41aabfcd7ecc475 /RecordTimer.py
parent0ee61341634a64b426a5934065e43fdade81971d (diff)
downloadenigma2-435dfb5a2e49ec3957f05359e883f3246481fdf6.tar.gz
enigma2-435dfb5a2e49ec3957f05359e883f3246481fdf6.zip
con't crash on loading old timers without the "disabled" attribute
Diffstat (limited to 'RecordTimer.py')
-rw-r--r--RecordTimer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index e047075f..19ec9db5 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -183,7 +183,10 @@ def createTimer(xml):
serviceref = ServiceReference(str(xml.getAttribute("serviceref")))
description = xml.getAttribute("description").encode("utf-8")
repeated = xml.getAttribute("repeated").encode("utf-8")
- disabled = eval(xml.getAttribute("disabled"))
+ try:
+ disabled = eval(xml.getAttribute("disabled"))
+ except:
+ disabled = False
try:
eit = long(xml.getAttribute("eit").encode("utf-8"))
except: