This would be easily fixed by either passing `attrs or {}` into the
context in the `label_tag` method, or adding an `if attrs` guard in
`attrs.html`.
I have checked that this issue still exists on the main branch.
--
Ticket URL: <https://code.djangoproject.com/ticket/34335>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for this report, however many templates, including some of the
Django's templates, rely upon the silence of the template system when a
nonexistent variable is encountered. I don't think it's worth tracking and
changing them (see also #28526).
--
Ticket URL: <https://code.djangoproject.com/ticket/34335#comment:1>