Opened 4 years ago

Closed 4 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@… 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by eric.buckley@…

comment:1 Changed 4 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 4 years ago by lrekucki

  • Resolution set to needsinfo
  • Status changed from new to closed

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

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