# asyncio.exceptions.CancelledError: Task exception was never retrieved

- **ID:** `python/asyncio-task-exception-silent`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A task raises an exception but the exception is never awaited or retrieved, leading to silent failures.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   task.add_done_callback(lambda t: t.exception() if not t.cancelled() else None)
   ```
2. **** (95% success)
   ```
   try: await task except Exception as e: print(e)
   ```

## Dead Ends

- **** — The exception is lost, making debugging difficult. (90% fail)
- **** — If the task is not done, it may block or raise. (60% fail)
