New submission from Dustin Kirkland <[email protected]>:
My Apache2 logs are filled with the following error kicked out by my python
wsgi script:
[Wed Mar 14 18:16:38 2012] [error] Exception AttributeError:
AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in
<module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
I was able to silence these with a simple conditional in
/usr/lib/python2.7/threading.pyc:
- del self._Thread__block
+ if hasattr(self, '_Thread__block'):
+ del self._Thread__block
Full patch attached.
----------
files: thread.py.patch
keywords: patch
messages: 155818
nosy: Dustin.Kirkland
priority: normal
severity: normal
status: open
title: Exception AttributeError: AttributeError("'_DummyThread' object has no
attribute '_Thread__block'",) in <module 'threading' from
'/usr/lib/python2.7/threading.pyc'> ignored
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file24852/thread.py.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14308>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com