mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-19 12:00:15 +08:00
exception handling
This commit is contained in:
+5
-1
@@ -527,11 +527,15 @@ def EXCEPTION_FRAME(exception_tb, name, message):
|
||||
rlist = []
|
||||
for stack in stack_list:
|
||||
filename = shorten_filename(stack[0])
|
||||
# default the line to empty string rather than None
|
||||
line = ''
|
||||
if stack[3]:
|
||||
line = stack[3]
|
||||
rstack = {
|
||||
'filename' : filename,
|
||||
'lineno' : stack[1],
|
||||
'method' : stack[2],
|
||||
'line' : stack[3]
|
||||
'line' : line
|
||||
}
|
||||
rlist.append(rstack)
|
||||
result = {
|
||||
|
||||
Reference in New Issue
Block a user