[Twisted-Python] @inlineCallbacks eat the traceback. Help?

Jean-Paul Calderone exarkun at divmod.com
Tue Dec 4 17:13:40 MST 2007


On Tue, 4 Dec 2007 22:24:33 +0000 (UTC), Matthias Urlichs <matthias at urlichs.de> wrote:
>It seems that @inlineCallbacks trashes the error traceback when you yield
>a Deferred that emits an error. That's not very social behavior.
>
>Any ideas how to get the traceback back?

One possibility is to not use inlineCallbacks.

Another possibility is to wait for the next release of Twisted, which
will have some additional functionality in this area and may be able
to provide the correct traceback (but no promises).  This is implemented
already, so you could check out trunk and give it a try.

Jean-Paul




More information about the Twisted-Python mailing list