[Twisted-Python] Counting errors in a DeferredList and avoiding Unhandled error in Deferred messages

Tristan Seligmann mithrandi at mithrandi.net
Mon May 5 11:58:14 MDT 2008

* Terry Jones <terry at jon.es> [2008-05-05 19:10:39 +0200]:

> If I pass a list of deferreds to DeferredList and want to add a callback to
> the DeferredList to look at whatever errors have occurred in the underlying
> deferreds, should I do something like this:

You might want to look at the gatherResults() utility function which
returns a deferred that either fires with a list of the results, or
errbacks with the first error to occur.
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: </pipermail/twisted-python/attachments/20080505/0ac1302c/attachment.sig>

More information about the Twisted-Python mailing list