def _try_renderer_template(template_path, ext='txt', **kwargs):
    """
    Attempt to render a template. We use a try/catch here to avoid having to
    do a path exists based on a relative path to the template.

    :param template_path: Template path
    :type template_path: str
    :param ext: File extension
    :type ext: str
    :return: str
    """
    try:
        return render_template('{0}.{1}'.format(template_path, ext), **kwargs)
    except __HOLE__:
        pass
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/lib/flask_mailplus.py/_try_renderer_template