[Django] #33747: Display exception notes in in the technical 500 debug page on Python 3.11+.

2 views
Skip to first unread message

Django

unread,
May 27, 2022, 11:36:50 AM5/27/22
to django-...@googlegroups.com
#33747: Display exception notes in in the technical 500 debug page on Python 3.11+.
-------------------------------------------+------------------------
Reporter: Adam Johnson | Owner: (none)
Type: New feature | Status: new
Component: Error reporting | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
Similar to #33701's suggestion to extend the debug page.

Python 3.11 adds `BaseException.__notes__` which may include extra
information about the exception. These are expected to be used by certain
libraries that can attach context to exceptions.

https://docs.python.org/3.11/whatsnew/3.11.html#exceptions-can-be-
enriched-with-notes-pep-678

The default Python error handler displays these. Django's debug page
should too, to aid debugging.

--
Ticket URL: <https://code.djangoproject.com/ticket/33747>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages