Jinja2

Using jinja2 and try/catch for errors