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

Matthias Urlichs matthias at urlichs.de
Tue Dec 4 17:24:33 EST 2007

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?

This is Twisted 2.5.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.5/site-packages/twisted/internet/threads.py", line 25, in _putResultInDeferred
    result = f(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 813, in unwindGenerator
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 724, in _inlineCallbacks
    result = g.throw(result.type, result.value, result.tb)
--- <exception caught here> ---
  File "/var/lib/python-support/python2.5/homevent/worker.py", line 153, in _process
    r = yield w.process(event=self.event, queue=self)
exceptions.TypeError: float() argument must be a string or a number

Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Know when to quit.

More information about the Twisted-Python mailing list