STINNER Victor <vstin...@redhat.com> added the comment:
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. ---------- Added file: https://bugs.python.org/file48354/sys_threading_excepthook.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue1230540> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com