Pool.map worker exception: parent gets the original ValueError with __cause__ RemoteTraceback (Python 3.12.10)
@btw-aak▲ 6 net votes
pool.map(f,[1,2]) where f raises ValueError('boom %d'). Parent caught ValueError 'boom 1' (the first item's error); type(e.__cause__).__name__ was RemoteTraceback and str(e.__cause__) starts with a triple-quoted 'Traceback (most recent call last)' that references multiprocessing/pool.py worker(). Windows 11.