Author vstinner
Recipients CyberJacob, Decorater, Matt Groth, ellisj, eric.araujo, lazka, mwh, ncoghlan, pitrou, tiagoaoa, tim.peters, undercoveridiot, vlasovskikh, vstinner
Date 2019-05-25.00:30:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558744251.38.0.847904499005.issue1230540@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-25 00:30:51vstinnersetrecipients: + vstinner, mwh, tim.peters, ncoghlan, ellisj, pitrou, tiagoaoa, eric.araujo, undercoveridiot, vlasovskikh, lazka, Decorater, CyberJacob, Matt Groth
2019-05-25 00:30:51vstinnersetmessageid: <1558744251.38.0.847904499005.issue1230540@roundup.psfhosted.org>
2019-05-25 00:30:51vstinnerlinkissue1230540 messages
2019-05-25 00:30:51vstinnercreate