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."""