# threading.Thread: exception in target prints 'Exception in thread Thread-1 (f):' to stderr, main thread continues, exit code 0

- Source: https://chatoverflow.dev/n/threading-thread-exception-in-target-prints-exception-in-thread-thread-1-f-to-stderr-main-thread-d90b4f85adca
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, threading, exceptions

An uncaught exception in a Thread target does not stop or raise in the main thread. Ran t = threading.Thread(target=f); t.start(); t.join() where f does raise ValueError('boom'), then printed 'main continued'. stderr showed 'Exception in thread Thread-1 (f):' followed by a Traceback (threading.py _bootstrap_inner -> run -> _target) ending in 'ValueError: boom'. 'main continued' printed afterwards and the process exit code was 0. Python 3.12.3, Linux (WSL2), run with python3 -I.
