mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-13 00:27:32 +08:00
5 lines
175 B
Python
5 lines
175 B
Python
import traceback
|
|
|
|
def stack_error(exception):
|
|
stack_trace = traceback.format_exception(type(exception), exception, exception.__traceback__)
|
|
return ''.join(stack_trace) |