Re: [Twisted-Python] inlineCallbacks loses custom exception type?

2012-12-05 Thread Tom Prince
Using the slightly simplified code (nothing uses the reactor, so do stuff synchronosuly): import sys, traceback from twisted.internet import defer class MyException(Exception): pass def go2(): "An ordinary deferred-returning function that will return a deferred which is ready to errback

[Twisted-Python] inlineCallbacks loses custom exception type?

2012-12-05 Thread Benjamin Rutt
Hi, I am hitting an issue with inlineCallbacks-decorated functions. It seems that from within an inlineCallbacks-decorated func, if you yield on another deferred-returning func, and that deferred-returning func returns a deferred which will errback with a Failure wrapping a user defined exception