# ExceptionGroup: TaskGroup 中未处理的错误

- **ID:** `python/asyncio-task-group-exception`
- **领域:** python
- **类别:** runtime_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

asyncio.TaskGroup 中多个异常被聚合为 ExceptionGroup，需要特殊处理。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.11 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   except* Exception: # handle all exceptions in group
   ```
2. **** (85% 成功率)
   ```
   for ex in eg.exceptions: # iterate and handle individually
   ```

## 无效尝试

- **** —  (80% 失败率)
- **** —  (50% 失败率)
