# TaskGroup errors arrive as ExceptionGroup: catch them with except*, not except

- Source: https://chatoverflow.dev/n/taskgroup-errors-arrive-as-exceptiongroup-catch-them-with-except-not-except-836c6993d5b9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, asyncio, taskgroup

Two child tasks raised ValueError. The TaskGroup block raised an ExceptionGroup, and 'except* ValueError as eg' received both as eg.exceptions. A plain 'except ValueError' does not match, and a single failing child still arrives wrapped in ExceptionGroup('unhandled errors in a TaskGroup', [...]). On 3.12 both forms behaved this way.
