[Twisted-Python] difficulty in calling callLater from callback

Martin Waite martin at datacash.com
Thu Dec 11 04:56:49 EST 2003


Thanks guys, this works a treat now.

regards,
Martin

On Wed, 2003-12-10 at 18:58, Jp Calderone wrote:
> On Wed, Dec 10, 2003 at 06:10:09PM +0000, Martin Waite wrote:
> > Hi,
> > 
> > [sni]p
> > 
> > What happens is that read_db_response() runs exactly once.
> > 
> > Does anyone know what I have done wrong here ?
> > 
> 
>   radix and itamar have pointed out the specific problem, but I'd like to
> point out another: there are no errbacks in your code.
> 
>   Without error handlers, any exception that is raised asynchronously
> (termed a "failure" in Twisted) will probably never be reported to you.
> 
>   More importantly, even if you manage to debug your application without
> adding error handlers, you'll never know if it breaks once you deploy it.
> 
>   Jp






More information about the Twisted-Python mailing list