def markFailed(epObj):
 log_str = u''
 try:
  with epObj.lock:
   quality = Quality.splitCompositeStatus(epObj.status)[1]
   epObj.status = Quality.compositeStatus(FAILED, quality)
   epObj.saveToDB()
 except EpisodeNotFoundException as e:
  logger.log((u'Unable to get episode, please set its status manually: ' + ex(e)), logger.WARNING)
 return log_str

def markFailed ( epObj ) : log_str = u'' try : with epObj . lock : quality = Quality . splitCompositeStatus ( epObj . status ) [ 1 ] epObj . status = Quality . compositeStatus ( FAILED , quality ) epObj . saveToDB ( ) except EpisodeNotFoundException as e : logger . log ( ( u'Unable to get episode, please set its status manually: ' + ex ( e ) ) , logger . WARNING ) return log_str
mark an episode as failed .