Re: Exceptions in twisted.web.client
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <20091008121747.24460.367199738.divmod.xquotient.221@boson> |
On 7 Oct, 03:33 am, [email protected] wrote: >Hi, >I have an application that fetches many urls, following any redirects. >Every >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 >around >the getPage() call, neither of which get invoked. > >Are these exceptions that web.client needs to catch internally and then >call >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. Jean-Paul