<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div class="gmail_quote">Maciej Wasilak <wasilak@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hello,<br /><div><div class="gmail_extra"><br /></div><div class="gmail_extra">just one more question:<br /></div><div class="gmail_extra"><br /><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
</div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Well, yes, you should, but still keep in mind that you can actually just pass the request like so:<br />
<br /></div><div>.addErrback(handleErrors, request)<br />

<br /></div><div dir="ltr">You don't really have to save the request itself anywhere as an attribute.<br /></div></div></div></div></blockquote><div> </div>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?<br />
</div>Best Regards<br /></div><div class="gmail_extra">Maciek<br /></div></div></div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Twisted-Python mailing list<br />Twisted-Python@twistedmatrix.com<br /><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br /></pre></blockquote></div><br clear="all">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.<br>
-- <br>
Sent from my phone with, please excuse brevity and typos</body></html>