Created
May 30, 2016 18:12
-
-
Save terrycojones/a84bea9063c05e96c5777e5196fdbe8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.internet import defer | |
def queryAll(self, n): | |
def ignoreCancellation(error): | |
error.trap(defer.CancelledError) | |
return defer.DeferredList( | |
self.query().addErrback(ignoreCancellation) for _ in range(n)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment