From 435dfb5a2e49ec3957f05359e883f3246481fdf6 Mon Sep 17 00:00:00 2001 From: Axel Buehning Date: Thu, 26 Jan 2006 15:32:30 +0000 Subject: [PATCH] con't crash on loading old timers without the "disabled" attribute --- RecordTimer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.30.2