[Twisted-Python] run queries in deffered, but not in transaction
markv at lumierevfx.com
Thu Sep 17 12:51:33 EDT 2009
Matt Perry wrote:
> would swallow any exceptions thrown by deferred1 and continue on to
> create deferred2. If you did:
> then an exception in "foo" would break the whole callback chain.
You can also use addBoth(), which adds a callback and errback at the
same time. Though I prefer the @inlineCallbacks semantics, since they
produce much more readable code.
More information about the Twisted-Python