def check_error_div(data, error_div):
    """
    Dunno about this, it was created long time ago and I have no idea.
    """
    if error_div in data:
        data = data.split(error_div)[1]
        data = data.split('</div>')[0]
        raise ValueError(data)
