fix
This commit is contained in:
1 parent
6359464184
commit
02d4eb49d7
2 files changed
+2
-4
No files matched your search
@@ -40,9 +40,7 @@ def ReJson(code: int, body: [dict, list] = None, msg: str = None, error: str = N
|
||||
rjson['msg'] = msg
|
||||
if code != 0:
|
||||
stack = traceback.extract_stack()
|
||||
project_stack = [frame for frame in stack if "pywxdump" in frame.filename.lower() and
|
||||
any(keyword in frame.filename for keyword in
|
||||
["api", "db", "wx_core", "analyzer", "ui", "cli", "server"])]
|
||||
project_stack = [frame for frame in stack]
|
||||
# 格式化调用栈信息
|
||||
formatted_stack = ''.join(traceback.format_list(project_stack))
|
||||
# stack_trace = ''.join(traceback.format_stack())
|
||||
|
||||
Reference in new issue
Block a user