#29393 closed Bug (fixed)
Infinite loop in ExceptionReporter.get_traceback_frames()
| Reported by: | James Howe | Owned by: | |
|---|---|---|---|
| Component: | Error reporting | Version: | 2.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The following code generates a cause/context cycle (exc_value.__cause__.__context__ is exc_value):
except WrapperException as exc:
raise exc.__cause__
The while exc_value loop then never terminates.
Change History (7)
comment:1 by , 8 years ago
comment:3 by , 8 years ago
In a view, with DEBUG = True.
try:
raise RuntimeError('outer') from RuntimeError('inner')
except RuntimeError as exc:
raise exc.__cause__
comment:4 by , 8 years ago
| Summary: | Infinite loop in ExceptionReporter.get_traceback_frames → Infinite loop in ExceptionReporter.get_traceback_frames() |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
A possible workaround would be available if PEP 415 (
__suppress_context__) were respected.