Opened 13 years ago
Closed 13 years ago
#19827 closed Bug (fixed)
Exception reraise in defaulttags shoud keep stacktrace
| Reported by: | German M. Bravo | Owned by: | regebro |
|---|---|---|---|
| Component: | Template system | Version: | 1.4 |
| Severity: | Normal | Keywords: | sprint2013 |
| Cc: | German M. Bravo | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | yes | UI/UX: | no |
Description
I've stumbled upon a problem where a reraised exception doesn't keep the original stacktrace. I'm attaching a patch to fix this
Attachments (3)
Change History (13)
comment:1 by , 13 years ago
| Cc: | added |
|---|
comment:2 by , 13 years ago
| Has patch: | set |
|---|---|
| Needs tests: | set |
| Patch needs improvement: | set |
by , 13 years ago
| Attachment: | #19827-stacktrace_on_reraise.diff added |
|---|
comment:3 by , 13 years ago
| Component: | Uncategorized → Template system |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Bug |
comment:7 by , 13 years ago
| Easy pickings: | set |
|---|
comment:8 by , 13 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
by , 13 years ago
| Attachment: | 19827-stacktrace_on_reraise.2.diff added |
|---|
Replacement based on feedback from claudep
comment:9 by , 13 years ago
| Keywords: | sprint2013 added |
|---|
comment:10 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
The patch must use six.reraise for Python 3 compatibility.
See. https://docs.djangoproject.com/en/dev/topics/python3/#exceptions