mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
report correct line number
This commit is contained in:
parent
c0ace4ee5d
commit
aa40b011f8
@ -700,12 +700,12 @@ def describeException(backTrace = 4):
|
|||||||
stack = []
|
stack = []
|
||||||
while trace.tb_next:
|
while trace.tb_next:
|
||||||
module = trace.tb_frame.f_globals.get('__name__', None)
|
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))
|
stack.append("%s:%s, " % (module, lineno))
|
||||||
trace = trace.tb_next
|
trace = trace.tb_next
|
||||||
|
|
||||||
module = trace.tb_frame.f_globals.get('__name__', None)
|
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))
|
stack.append("%s:%s, " % (module, lineno))
|
||||||
|
|
||||||
description = ""
|
description = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user