report correct line number

This commit is contained in:
David Rose 2003-07-17 16:00:03 +00:00
parent c0ace4ee5d
commit aa40b011f8

View File

@ -700,12 +700,12 @@ def describeException(backTrace = 4):
stack = []
while trace.tb_next:
module = trace.tb_frame.f_globals.get('__name__', None)
lineno = trace.tb_lineno
lineno = trace.tb_frame.f_lineno
stack.append("%s:%s, " % (module, lineno))
trace = trace.tb_next
module = trace.tb_frame.f_globals.get('__name__', None)
lineno = trace.tb_lineno
lineno = trace.tb_frame.f_lineno
stack.append("%s:%s, " % (module, lineno))
description = ""