mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-13 08:37:18 +08:00
6 lines
194 B
Python
6 lines
194 B
Python
import traceback
|
|
|
|
def stack_error(exception: Exception) -> str:
|
|
stack_trace = traceback.format_exception(type(exception), exception, exception.__traceback__)
|
|
return ''.join(stack_trace)
|