Message343444
If you want to reuse sys.excepthook to handle uncaught Thread.run() exception, you can now write:
---
def hook(args):
if args.exc_type == SystemExit:
return
sys.excepthook(args.exc_type, args.exc_value, args.exc_traceback)
threading.excepthook = hook
---
Try attached sys_threading_excepthook.py for a full example. |
|
Date |
User |
Action |
Args |
2019-05-25 00:30:51 | vstinner | set | recipients:
+ vstinner, mwh, tim.peters, ncoghlan, ellisj, pitrou, tiagoaoa, eric.araujo, undercoveridiot, vlasovskikh, lazka, Decorater, CyberJacob, Matt Groth |
2019-05-25 00:30:51 | vstinner | set | messageid: <1558744251.38.0.847904499005.issue1230540@roundup.psfhosted.org> |
2019-05-25 00:30:51 | vstinner | link | issue1230540 messages |
2019-05-25 00:30:51 | vstinner | create | |
|