def __init__(self, index, max_index):
    super().__init__('Invalid index [%s] used for list data record lookup. Use indices between 0 and %d'.format(index, max_index))
def __init__(self, index, max_index):
    super().__init__('Invalid index [%s] used for list data record lookup. Use indices between 0 and %d'.format(index, max_index))