AttributeError '_Frame' object has no attribute 'f_locals'
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.