[Twisted-Python] how to write a safe catch-all

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Sep 29 17:06:41 EDT 2010

On 08:27 pm, chris at simplistix.co.uk wrote:
>On 29/09/2010 18:31, exarkun at twistedmatrix.com wrote:
>>Then you're talking about an API in Twisted which returns a Deferred
>>that sometimes doesn't errback when the implementation encounters an
>>Also, `failIfNotConnected` should never raise an exception.
>>These sound like bugs.
>>File a couple tickets.  With a unit tests please. :)
>That's one side of things, sure, but how can I write a scheduler which
>handles the current situation?

Beats me.  I don't know exactly what bug you're hitting or how it's 
triggered, so I can't suggest a fix.  A unit test would clarify the 


More information about the Twisted-Python mailing list