

def _try_renderer_template(template_path, ext='txt', **kwargs):
    '\n    Attempt to render a template. We use a try/catch here to avoid having to\n    do a path exists based on a relative path to the template.\n\n    :param template_path: Template path\n    :type template_path: str\n    :param ext: File extension\n    :type ext: str\n    :return: str\n    '
    try:
        return render_template('{0}.{1}'.format(template_path, template_path), **kwargs)
    except IOError:
        pass

dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/lib/flask_mailplus.py _try_renderer_template/VarMisuse@32/169 `ext`->`template_path`