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 |
Description
I'm currently attempting to debug what appears to be an error handling bug in Django REST Framework: https://github.com/tomchristie/django-rest-framework/issues/3446
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 https://www.python.org/dev/peps/pep-3134/
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)
I believe this is done in Django 1.9 (see #23643).