From: Stefan Pluecken Date: Thu, 25 May 2006 22:02:04 +0000 (+0000) Subject: ugly workaround a bluescreen happening when a record timer fires that zaps away X-Git-Tag: 2.6.0~3381 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/48f2728ecdeabde7de0f497f8a69dbddcb047b90?hp=4ebaa45e04cecf33f0068d911a4bd64cb3be03cb 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? ;) --- 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):