# asyncio.queues.QueueEmpty: Queue is empty

- **ID:** `python/asyncio-queue-empty`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Calling queue.get_nowait() on an empty asyncio.Queue.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   if not q.empty(): item = q.get_nowait()
   ```
2. **** (100% success)
   ```
   item = await q.get()
   ```

## Dead Ends

- **** — get() is a coroutine and must be awaited; otherwise it raises a different error. (90% fail)
- **** — May lead to null pointer issues if not handled properly. (50% fail)
