Edit this Python code to raise an error if the length of the list less than 3
def check_list_length(lists):
    if len(lists) > 3:
        return True
    else:
        return False
def check_list_length(lists):
    if len(lists) > 3:
        return True
    else:
        raise ValueError("list length should be more than 3")