def empty_list_check(self):
        self.loggit.debug('Checking for empty list')
        if not self.indices:
            raise NoIndices('index_list object is empty.')
Raise exception if `indices` is empty
dataset/ETHPy150Open elastic/curator/curator/indexlist.py/IndexList.empty_list_check