def METHOD_NAME(org_name, session):
    attempts = 0
    while attempts < 10:
        result = hit_api(session.oauths, ORG_REPOS_ENDPOINT.format(org_name), logger)
        # if result is None try again
        if not result:
            attempts += 1
            continue
        response = result.json()
        if response:
            return response
    return None