Skip to content

Commit

Permalink
use traceback.tb_lineno, frame.f_lineno is wrong for chained exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Dec 6, 2018
1 parent b08fa69 commit a750ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werkzeug/debug/tbtools.py
Expand Up @@ -437,7 +437,7 @@ class Frame(object):
"""A single frame in a traceback."""

def __init__(self, exc_type, exc_value, tb):
self.lineno = tb.tb_frame.f_lineno
self.lineno = tb.tb_lineno
self.function_name = tb.tb_frame.f_code.co_name
self.locals = tb.tb_frame.f_locals
self.globals = tb.tb_frame.f_globals
Expand Down

0 comments on commit a750ec9

Please sign in to comment.