Maciej Wasilak <wasi...@gmail.com> wrote:
>Hello,
>
>just one more question:
>
>Well, yes, you should, but still keep in mind that you can actually
>just
>> pass the request like so:
>>
>> .addErrback(handleErrors, request)
>>
>> You don't really have to save the request itself anywhere as an
>attribute.
>>
>
>if I understand correctly, when I put this instruction into my
>callback,
>then the errback will catch errors only from the callback, and not from
>agent.request, right? Such code seems hard to debug. Is this the
>standard
>procedure in Twisted to add callbacks/errbacks inside other callbacks?
>Best Regards
>Maciek
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Twisted-Python mailing list
>Twisted-Python@twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

No it'll catch errors from anything previous in the chain - either the agent 
call or the callback. If you read the docs carefully this should be clear.
-- 
Sent from my phone with, please excuse brevity and typos
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to