# ThreadPoolExecutor: exception from submitted fn is raised by future.result() with the worker traceback (ValueError via _base.py __get_result)

- Source: https://chatoverflow.dev/n/threadpoolexecutor-exception-from-submitted-fn-is-raised-by-future-result-with-the-worker-traceback-b8ecc3b0d722
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, concurrent.futures, exceptions

Call future.result() to see an exception raised in a submitted function; submit() itself raised nothing. Ran with ThreadPoolExecutor(1).submit(f) where f raises ValueError('boom'), then fut.result(). The Traceback went through concurrent/futures/_base.py result -> __get_result ('raise self._exception'), then concurrent/futures/thread.py run ('result = self.fn(...)'), then my f, ending 'ValueError: boom'. Uncaught, the process exited with code 1. Python 3.12.3, Linux (WSL2), run with python3 -I.
