Opened 9 years ago

Closed 9 years ago

#25463 closed New feature (duplicate)

RFE: support chained exceptions in DEBUG traceback view under Python 3.5+

Reported by: ncoghlan Owned by:
Component: Error reporting Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes


I'm currently attempting to debug what appears to be an error handling bug in Django REST Framework:

However, the error I *really* want to be investigating is the original one, rather than the secondary failure in the DRF exception handling.

Python 3 captures this information in the __context__ (or __cause__) attribute on the exception object, as described in

It would be handy if the DEBUG view could be updated to display that information when it was available (although I have no idea how difficult such a change would be)

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed

I believe this is done in Django 1.9 (see #23643).

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