The
[https://github.com/django/django/blob/d79cf1e/django/views/debug.py#L397
while exc_value] loop then never terminates.
--
Ticket URL: <https://code.djangoproject.com/ticket/29393>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by James Howe):
A possible workaround would be available if PEP 415
(`__suppress_context__`) were respected.
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:1>
Comment (by Tim Graham):
Can you please give code to reproduce the issue?
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:2>
Comment (by James Howe):
In a view, with `DEBUG = True`.
{{{
try:
raise RuntimeError('outer') from RuntimeError('inner')
except RuntimeError as exc:
raise exc.__cause__
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:3>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/10730 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:5>
* owner: (none) => Tim Graham <timograham@…>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"3634560fa9ddb342c3a823b78cc63e7000ccabd8" 3634560f]:
{{{
#!CommitTicketReference repository=""
revision="3634560fa9ddb342c3a823b78cc63e7000ccabd8"
Fixed #29393 -- Prevented infinite loop in
ExceptionReporter.get_traceback_frames().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29393#comment:6>