<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 19, 2011, at 8:10 PM, Saúl Ibarra Corretgé wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">I fixed it by doing the following:<br><br>&nbsp;&nbsp;&nbsp;def _got_keys_error(self, error, credentials):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not error.check(ValidPublicKey):<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return&nbsp;failure.Failure(ConchError(error.getErrorMessage()))</span></span></blockquote><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div>Are you sure that's what you want? &nbsp;If you just say "I don't want to handle anything except FooError", i.e. the asynchronous equivalent to "except FooError", it's like this:</div><div><br></div><div>def myErrback(self, f):</div><div>&nbsp;&nbsp; &nbsp;f.trap(FooError)</div><div>&nbsp;&nbsp; &nbsp;# ... handle it ...</div><div><br></div><div><br></div></body></html>