Jinja

python template engine


Ticket #311 (new defect)

Opened 2 years ago

Last modified 21 months ago

{% from X import y %} bug in Jinja2.0

Reported by: Kaelten Owned by: mitsuhiko
Priority: critical Milestone:
Component: parser Version: dev
Keywords: Cc:

Description

when you are in file A and you accidently do

{% from 'file A' import macro_b %}

your process crashes.

Change History

Changed 21 months ago by mitsuhiko

  • priority changed from major to critical

This is annoying but there is currently now way to catch those things. The best thing I can offer for the moment is wrapping the rendering in try/except and looking if the error catched is a recursion runtime error.

Note: See TracTickets for help on using tickets.