Re: [Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-22 Thread Paul Goins
Hi Terry, > You're only printing the exception, not a full traceback, so you don't see > much. I tend to write what you're doing as follows: [...] Excellent. I'll give it a try. I had a feeling it was something like that which I was missing. I already understood that inlineCallbacks returns De

Re: [Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-22 Thread Terry Jones
Hi Paul > "Paul" == Paul Goins writes: You're only printing the exception, not a full traceback, so you don't see much. I tend to write what you're doing as follows: from twisted.python import log @defer.inlineCallbacks def xmlrpc_dosomething(self): d = self._do_somethi

[Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-21 Thread Paul Goins
I'm frequently using the inlineCallbacks idiom for writing code, but am often finding myself frustrated with rather counterintuitive tracebacks. Let's say I'm writing an XML-RPC handler, and even if an exception occurs, I want it to return something to the user and dump the exception to the log fi