Skip to content

Commit

Permalink
We cannot fake the descriptor on a tproxy so we have to set _tb_next …
Browse files Browse the repository at this point in the history
…directly
  • Loading branch information
mitsuhiko committed Nov 29, 2010
1 parent 40c593e commit 19a2374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jinja2/debug.py
Expand Up @@ -80,9 +80,9 @@ def __init__(self, exc_type, exc_value, frames):
prev_tb = None
for tb in self.frames:
if prev_tb is not None:
prev_tb.tb_next = tb
prev_tb._tb_next = tb
prev_tb = tb
prev_tb.tb_next = None
prev_tb._tb_next = None

def render_as_text(self, limit=None):
"""Return a string with the traceback."""
Expand Down

0 comments on commit 19a2374

Please sign in to comment.