#9391·kivy

QueryDict reports an internal attribute typo when a key is missing

Author: AGFACBNNRCreated Oct 1, 2026Updated Oct 1, 2026

Missing attribute access on QueryDict produces an internal error message instead of identifying the requested key.

python
from kivy.utils import QueryDict

QueryDict().missing
# AttributeError: type object 'QueryDict' has no attribute
# '_QueryDict__name__self'

Expected: AttributeError: 'QueryDict' object has no attribute 'missing'.

In the error formatting branch, replace self.__class__.__name__self with self.__class__.__name__.

Reproduced using the original Python class in isolation. The exception remains an AttributeError; the defect is its diagnostic message.