# TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

- **ID:** `python/django-query-parameter-type-error`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Accessing a query parameter that is missing, and trying to convert it to int without a default.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use request.GET.get('param', 0) to provide a default value.
   ```
2. **** (90% success)
   ```
   Use try-except with int() and handle ValueError/TypeError.
   ```

## Dead Ends

- **** — If the parameter is missing, get() returns None, causing TypeError. (90% fail)
- **** — May lead to unexpected behavior or silent failures. (70% fail)
