#33747 closed New feature (fixed)

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

Reported by: Adam Johnson Owned by: Giebisch
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 (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 (11)

comment:1 Changed 16 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 16 months ago by Claude Paroz

Triage Stage: UnreviewedAccepted

comment:3 Changed 16 months ago by Adam Johnson

Description: modified (diff)

comment:4 Changed 16 months ago by Mariusz Felisiak

Triage Stage: AcceptedSomeday/Maybe
Version: 4.1dev

Let's wait for the final release first.

comment:5 Changed 11 months ago by Mariusz Felisiak

Triage Stage: Someday/MaybeAccepted

comment:6 Changed 11 months ago by Giebisch

Owner: set to Giebisch
Status: newassigned

comment:7 Changed 10 months ago by Giebisch

Has patch: set
Last edited 10 months ago by Mariusz Felisiak (previous) (diff)

comment:8 Changed 10 months ago by Mariusz Felisiak

Patch needs improvement: set

comment:9 Changed 10 months ago by Giebisch

Patch needs improvement: unset

comment:10 Changed 10 months ago by Mariusz Felisiak

Triage Stage: AcceptedReady for checkin

comment:11 Changed 10 months ago by Mariusz Felisiak <felisiak.mariusz@…>

Resolution: fixed
Status: assignedclosed

In 80c66e4:

Fixed #33747 -- Added exception notes to the technical 500 debug page.

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