def get_renderer(obj):
    if isinstance(obj, webob.exc.HTTPException):
        return ExceptionRenderer(obj)
    else:
        return TextRenderer(headers.get_renderer(obj))
Get the correct renderer for the given object.
dataset/ETHPy150Open openstack/ooi/ooi/occi/rendering/text.py/get_renderer