ugly workaround a bluescreen happening when a record timer fires that zaps away
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 25 May 2006 22:02:04 +0000 (22:02 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 25 May 2006 22:02:04 +0000 (22:02 +0000)
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

index 13bca8d146bcc9b86c65dc782469fb26d8bba005..2624209cbe336ef712ad7ded8fd23b2983c2c744 100644 (file)
@@ -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):