[Twisted-Python] problem with long-running threads

Itamar Shtull-Trauring twisted at itamarst.org
Tue Feb 25 13:20:06 EST 2003

On Tue, 25 Feb 2003 04:19:50 +0000
"Clark C. Evans" <cce at clarkevans.com> wrote:

> I've been getting the following traceback in my log files... any
> ideas? I'm using a separate thread for a long-running-query...

> 	    File "server.py", line 13, in bad
> 	        req.finish()
> 		  File
> 		  "/usr/local/lib/python2.2/site-packages/twisted/protocols/ht
> 		  tp.py", line 559, in finish
> 		  exceptions.AttributeError: Request instance has no
> 		  attribute 'channel'

You are calling request.finish() twice. Maybe your render method didn't
return NOT_DONE_YET to indicate that it is not finishing immediately?

Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
***> Stop the war: http://unitedforpeace.org/ <***

More information about the Twisted-Python mailing list