From 19a23746b0d2162fbcb6286949137d0874d90ce1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 29 Nov 2010 12:14:50 +0100 Subject: [PATCH] We cannot fake the descriptor on a tproxy so we have to set _tb_next directly --- jinja2/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jinja2/debug.py b/jinja2/debug.py index e8492cd67..80ee2e703 100644 --- a/jinja2/debug.py +++ b/jinja2/debug.py @@ -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."""