Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2153 closed defect (fixed)

debug.py fails to render

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Sometimes when django is unable to find the correct location for an error,
it just dumps a stack trace instead of showing the more informative debug page.

The problem is in views/debug.py, setting the lastframe to the last element of the frames list,
which happens to be empty if no frame could be found.

A trivial patch solving the problem is attached.

Attachments (1)

debug_patch (557 bytes ) - added by anonymous 18 years ago.
[patch] remove possible rendering failure in debug.py

Download all attachments as: .zip

Change History (2)

by anonymous, 18 years ago

Attachment: debug_patch added

[patch] remove possible rendering failure in debug.py

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [3127]) Fixed #2153 -- display debugging template even if no stack frame is found.

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