[issue14308] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'", ) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

Dustin Kirkland report at bugs.python.org
Thu Mar 15 00:48:20 CET 2012


New submission from Dustin Kirkland <dustin.kirkland at gmail.com>:

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 <report at bugs.python.org>
<http://bugs.python.org/issue14308>
_______________________________________


More information about the Python-bugs-list mailing list