mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-13 08:37:18 +08:00
feat:优化代码
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import traceback
|
||||
|
||||
def stack_error(exception):
|
||||
def stack_error(exception: Exception) -> str:
|
||||
stack_trace = traceback.format_exception(type(exception), exception, exception.__traceback__)
|
||||
return ''.join(stack_trace)
|
||||
return ''.join(stack_trace)
|
||||
|
||||
Reference in New Issue
Block a user