Opened 4 months ago

Last modified 4 months ago

#33747 new New feature

Display exception notes on the technical 500 debug page on Python 3.11+.

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

Description (last modified by Adam Johnson)

Similar to these tickets for extending the debug page for Python 3.11 exception changes: #33701, #33752.

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 (4)

comment:1 Changed 4 months ago by Adam Johnson

Summary: Display exception notes in in the technical 500 debug page on Python 3.11+.Display exception notes on the technical 500 debug page on Python 3.11+.

comment:2 Changed 4 months ago by Claude Paroz

Triage Stage: UnreviewedAccepted

comment:3 Changed 4 months ago by Adam Johnson

Description: modified (diff)

comment:4 Changed 4 months ago by Mariusz Felisiak

Triage Stage: AcceptedSomeday/Maybe
Version: 4.1dev

Let's wait for the final release first.

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