django - python3 中如何在线程出现 exception 的时候退出整个进程?
巴扎黑
巴扎黑 2017-04-17 13:17:11
0
1
312

我看了 faulthandler 的文档。它没法满足我的需求。我要的是能捕获到并且 os.exit 。
如果能像 django 那样打印出 local vars 的值就更好了。

巴扎黑
巴扎黑

reply all(1)
大家讲道理

Wouldn’t it be better if you add try...except at the outermost part of the thread code?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!