[Twisted-web] Exceptions in twisted.web.client

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Oct 8 08:17:47 EDT 2009

On 7 Oct, 03:33 am, chris.were at gmail.com wrote:
>I have an application that fetches many urls, following any redirects. 
>so often I get a variety of unhandled exceptions from within
>twisted.web.client (see snippet at the bottom of email).
>My code has an addErrback attached to the deferred and a try/except 
>the getPage() call, neither of which get invoked.
>Are these exceptions that web.client needs to catch internally and then 
>self.deferred.errback so that my error handler will receive it?
>If not, how can I catch them?

This does look like a bug in twisted.web.client.  Any error with the 
request should result in the Deferred being fired so that the caller can 
react to the problem.


More information about the Twisted-web mailing list