Django

Code

Ticket #2153 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

debug.py fails to render

Reported by: anonymous Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

debug_patch (0.5 kB) - added by anonymous on 06/14/06 05:48:31.
[patch] remove possible rendering failure in debug.py

Change History

06/14/06 05:48:31 changed by anonymous

  • attachment debug_patch added.

[patch] remove possible rendering failure in debug.py

06/14/06 06:44:58 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2153 (debug.py fails to render)




Change Properties
Action