[Twisted-Python] Passing additional arguments to errback

Maciej Wasilak wasilak at gmail.com
Fri Sep 6 14:06:01 MDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20130906/1eaa1fd3/attachment-0002.html>


More information about the Twisted-Python mailing list