Opened 2 years ago

Last modified 18 months ago

#33747 closed New feature

Display exception notes in in the technical 500 debug page on Python 3.11+. — at Initial Version

Reported by: Adam Johnson Owned by:
Component: Error reporting Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top