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

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Jan 20 00:18:08 EST 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: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110120/3b6e264a/attachment.htm 


More information about the Twisted-Python mailing list