jinja2.TemplateAssertionError

exception jinja2.TemplateAssertionError(message, lineno, name=None, filename=None)[source]

Like a template syntax error, but covers cases where something in the template caused an error at compile time that wasn’t necessarily caused by a syntax error. However it’s a direct subclass of TemplateSyntaxError and has the same attributes.