def get_exception_name(node):
    """
    Find the name of an exception

    Args:
        node: Parso node containing the raises statement

    Returns:
        str: The exception name
    """
    name = node.children[1]
    while not name.type == 'name':
        name = name.children[0]
    return name.value