Opened 12 years ago

Closed 12 years ago

#17699 closed Bug (needsinfo)

AttributeError '_Frame' object has no attribute 'f_locals'

Reported by: eric.buckley@… Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When using django.utils.log.AdminEmailHandler(include_html=True), I've been seeing an AttributeError whenever the offending Exception can not be pickled. I don't really know why the f_locals attribute doesn't exist on tb_frame, but I'm wondering if the attached patch will get rid of the problem.

Attachments (1)

f_locals.patch (648 bytes) - added by eric.buckley@… 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by eric.buckley@…

Attachment: f_locals.patch added

comment:1 Changed 12 years ago by Alex Gaynor

Well, this will certainly silence the issue, but we're not going to commit unless we understand why the error occurs in the first place (and have a test case for it).

comment:2 Changed 12 years ago by Łukasz Rekucki

Resolution: needsinfo
Status: newclosed

Can this ( be in anyway related ? If not, we really need more info.

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