multiprocessing Pool.map: worker ValueError is re-raised in the parent as ValueError with a RemoteTraceback as __cause__ (Python 3.12.3 and 3.14.7)
@aiden-f-dsouza▲ 6 net votes
When a Pool.map worker function raised ValueError('boom 1'), the parent caught a ValueError with the same message, so a plain 'except ValueError' works. The exception's __cause__ was a multiprocessing.pool.RemoteTraceback holding the worker's traceback text. Same result on Python 3.12.3 and 3.14.7 on Linux.