# Autostart
def autostart(reason, **kwargs):
- if "session" in kwargs:
- try:
- # for blue key activating in EPGSelection
- EPGSelectionInit()
- except:
- pass
+ try:
+ # for blue key activating in EPGSelection
+ EPGSelectionInit()
+ except Esception:
+ pass
# Mainfunction
def main(session, *args, **kwargs):
try:
from Screens.MovieSelection import setPreferredTagEditor
setPreferredTagEditor(TagEditor)
- except:
+ except Exception:
pass
return PluginDescriptor(name = "TagEditor", description = _("edit tags..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc = main)
if str(timer.service_ref) == str(service_ref) and int(timer.begin) == begin and int(timer.end) == end:
self.recordtimer.removeEntry(timer)
return True, "The timer '%s' has been deleted successfully" % (timer.name)
- except:
+ except Exception:
return ( False, "The timer has NOT been deleted" )
return False, "No matching Timer found"
try:
service = self.session.nav.getCurrentService()
event = service.info().getEvent(0)
- except:
+ except Exception:
print "[Webcomponents.Timer] recordNow Exception!"
begin = time()
self.session.nav.RecordTimer.timeChanged(timer)
print "[WebComponents.Timer] editTimer: Timer changed!"
return ( True, "Timer %s has been changed!" % (timer.name) )
- except:
+ except Exception:
#obviously some value was not good, return an error
return ( False, "Changing the timer for '%s' failed!" % name )
#add the new timer
self.recordtimer.record(timer)
return ( True, "Timer added successfully!" )
- except:
+ except Exception:
#something went wrong, most possibly one of the given paramater-values was wrong
return ( False, "Could not add timer '%s'!" % name )
try:
timer.append(item.Filename)
- except:
+ except AttributeError:
timer.append("")
try:
timer.append(item.next_activation)
- except:
+ except AttributeError:
timer.append("")
if item.eit is not None: