From: Armin Ronacher Date: Mon, 29 Nov 2010 11:14:50 +0000 (+0100) Subject: We cannot fake the descriptor on a tproxy so we have to set _tb_next directly X-Git-Tag: 2.6~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a23746b0d2162fbcb6286949137d0874d90ce1;p=thirdparty%2Fjinja.git We cannot fake the descriptor on a tproxy so we have to set _tb_next directly --- diff --git a/jinja2/debug.py b/jinja2/debug.py index e8492cd6..80ee2e70 100644 --- a/jinja2/debug.py +++ b/jinja2/debug.py @@ -80,9 +80,9 @@ class ProcessedTraceback(object): 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."""