Lines Matching refs:tb
25 _, exc_value, tb = sys.exc_info()
27 tb = t.cast(TracebackType, tb)
37 tb = fake_traceback(
42 tb = tb.tb_next
48 while tb is not None:
51 if tb.tb_frame.f_code in internal_code:
52 tb = tb.tb_next
55 template = tb.tb_frame.f_globals.get("__jinja_template__")
58 lineno = template.get_corresponding_lineno(tb.tb_lineno)
59 fake_tb = fake_traceback(exc_value, tb, template.filename, lineno)
62 stack.append(tb)
64 tb = tb.tb_next
69 for tb in reversed(stack):
70 tb.tb_next = tb_next
71 tb_next = tb
77 exc_value: BaseException, tb: t.Optional[TracebackType], filename: str, lineno: int
86 :param tb: The original traceback to get the local variables and
91 if tb is not None:
94 locals = get_template_locals(tb.tb_frame.f_locals)
113 if tb is not None:
114 function = tb.tb_frame.f_code.co_name