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

Description

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)

by eric.buckley@…, 12 years ago

Attachment: f_locals.patch added

comment:1 by Alex Gaynor, 12 years ago

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 by Łukasz Rekucki, 12 years ago

Resolution: needsinfo
Status: newclosed

Can this (http://twistedmatrix.com/trac/ticket/4045) be in anyway related ? If not, we really need more info.

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