def async_exception_hook(type, error, tb):
"""Exception hook capable of printing async stack traces."""
global original_hook
stdout.flush()
stderr.flush()
if original_hook is not None:
original_hook(type, error, tb)
dump_error(error, tb=tb)
评论列表
文章目录