[Twisted-Python] (conch) credentials.signature always None?

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Jan 19 22:18:08 MST 2011


On Jan 19, 2011, at 8:10 PM, Saúl Ibarra Corretgé wrote:

> I fixed it by doing the following:
> 
>    def _got_keys_error(self, error, credentials):
>        if not error.check(ValidPublicKey):
>            return failure.Failure(ConchError(error.getErrorMessage()))

Are you sure that's what you want?  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:

def myErrback(self, f):
    f.trap(FooError)
    # ... handle it ...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20110120/3b6e264a/attachment.html>


More information about the Twisted-Python mailing list