jinja2.environment.TemplatesNotFound

exception jinja2.environment.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.