'Get the scene exceptions for all or a given show'

def run(self):

    if (self.indexerid is None):
        scene_exceptions = {}
        for dbData in [x[u'doc'] for x in sickrage.srCore.cacheDB.db.all(u'scene_exceptions', with_doc=True)]:
            indexerid = dbData[u'indexer_id']
            if (indexerid not in scene_exceptions):
                scene_exceptions[indexerid] = []
            scene_exceptions[indexerid].append(dbData[u'show_name'])
    else:
        showObj = findCertainShow(sickrage.srCore.SHOWLIST, int(self.indexerid))
        if (not showObj):
            return _responds(RESULT_FAILURE, msg=u'Show    not    found')
        scene_exceptions = []
        for dbData in [x[u'doc'] for x in sickrage.srCore.cacheDB.db.all(u'scene_exceptions', self.indexerid, with_doc=True)]:
            scene_exceptions.append(dbData[u'show_name'])
    return _responds(RESULT_SUCCESS, scene_exceptions)
