jinja2.TemplatesNotFound

exception jinja2.TemplatesNotFound(names=(), message=None)[source]

Like TemplateNotFound but raised if multiple templates are selected. This is a subclass of TemplateNotFound exception, so just catching the base exception will catch both.

New in version 2.2.