Opened 2 years ago

Closed 17 months ago

#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 by Adam Johnson, 2 years ago

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 by Claude Paroz, 2 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Adam Johnson, 2 years ago

Description: modified (diff)

comment:4 by Mariusz Felisiak, 2 years ago

Triage Stage: AcceptedSomeday/Maybe
Version: 4.1dev

Let's wait for the final release first.

comment:5 by Mariusz Felisiak, 18 months ago

Triage Stage: Someday/MaybeAccepted

comment:6 by Giebisch, 18 months ago

Owner: set to Giebisch
Status: newassigned

comment:7 by Giebisch, 17 months ago

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

comment:8 by Mariusz Felisiak, 17 months ago

Patch needs improvement: set

comment:9 by Giebisch, 17 months ago

Patch needs improvement: unset

comment:10 by Mariusz Felisiak, 17 months ago

Triage Stage: AcceptedReady for checkin

comment:11 by Mariusz Felisiak <felisiak.mariusz@…>, 17 months ago

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