mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-13 00:27:32 +08:00
8 lines
223 B
Python
8 lines
223 B
Python
import traceback
|
|
|
|
# 错误堆栈处理
|
|
def stack_error(exception):
|
|
stack_trace = traceback.format_exception(type(exception), exception, exception.__traceback__)
|
|
return ''.join(stack_trace)
|
|
|
|
stack_error = stack_error |