Call errbacks with future.exception

This commit is contained in:
Dana Powers
2016-01-03 23:31:09 -08:00
parent 54d758e813
commit bb433e27f0

View File

@@ -45,7 +45,7 @@ class Future(object):
self.is_done = True self.is_done = True
for f in self._errbacks: for f in self._errbacks:
try: try:
f(e) f(self.exception)
except Exception: except Exception:
log.exception('Error processing errback') log.exception('Error processing errback')
return self return self