def get_file_extension(filename):
    """
    Gets the final file extension from a filename, raises ValueError if there is no file extension.
    """
    split = filename.split('.')
    if len(split) < 2:
        raise ValueError("No file extension")
    return split[-1]