From 48f2728ecdeabde7de0f497f8a69dbddcb047b90 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 25 May 2006 22:02:04 +0000 Subject: [PATCH] ugly workaround a bluescreen happening when a record timer fires that zaps away following error would happen without try/except: InfoBarGenerics.py", line 1415, in checkNotificationsIfExecing AttributeError: 'MoviePlayer' object has no attribute 'execing' someone with knowledge what should be done here: could you fix it, tmbinc? ;) --- lib/python/Screens/InfoBarGenerics.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 13bca8d1..2624209c 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1412,8 +1412,11 @@ class InfoBarNotifications: Notifications.notificationAdded.append(self.checkNotificationsIfExecing) def checkNotificationsIfExecing(self): - if self.execing: - self.checkNotifications() + try: + if self.execing: + self.checkNotifications() + except: + print "******************************* A SEVERE ERROR HAPPENED... Someone who understands the code... please fix :) *******" def checkNotifications(self): if len(Notifications.notifications): -- 2.30.2