':type data: dict'

def _checkAuthFromData(self, data):

    if all([(x in data) for x in [u'feed', u'entries']]):
        return self.check_auth()
    try:
        if (int(data[u'bozo']) == 1):
            raise data[u'bozo_exception']
    except (AttributeError, KeyError):
        pass
    try:
        err_code = data[u'feed'][u'error'][u'code']
        err_desc = data[u'feed'][u'error'][u'description']
        if (int(err_code) == 100):
            raise AuthException(((u'Your    API    key    for    ' + self.name) + u'    is    incorrect,    check    your    config.'))
        elif (int(err_code) == 101):
            raise AuthException(((u'Your    account    on    ' + self.name) + u'    has    been    suspended,    contact    the    administrator.'))
        elif (int(err_code) == 102):
            raise AuthException(((u"Your    account    isn't    allowed    to    use    the    API    on    " + self.name) + u',    contact    the    administrator'))
        raise Exception(u'Error    {}:    {}'.format(err_code, err_desc))
    except (AttributeError, KeyError):
        pass
    return False
