[Twisted-Python] [cpushare at cpushare.com: CPUShare Exception]

glyph at divmod.com glyph at divmod.com
Thu Jul 7 08:48:59 EDT 2005



On Thu, 7 Jul 2005 14:22:56 +0200, Andrea Arcangeli <andrea at cpushare.com> wrote:

>Does anybody has suggestions on the best way to filter out all
>OpenSSL.SSL.Error exceptions before calling send_exception in the above
>code? Thanks!

It seems like you might want to filter more than just OpenSSL.SSL.Error ;).  eventDict['failure'] is a twisted.python.failure.Failure object; see the API docs or the code for that class for details on introspecting them (they're designed to be easier to introspect than Python tuples).

For your particular request:

if not eventDict['failure'].check(OpenSSL.SSL.Error):
 send_exception(...)





More information about the Twisted-Python mailing list