Swallow the error from Downloader._when_queue_is_empty.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-03-14 16:16:24 +00:00 committed by Brian Warner
parent 811d597cd8
commit 9e5b01b3ae

View File

@ -874,8 +874,13 @@ class Downloader(QueueMixin, WriteFileMixin):
return d
# XXX fixme
@defer.inlineCallbacks
def _when_queue_is_empty(self):
return self._scan(None)
try:
x = yield self._scan(None)
defer.returnValue(x)
except:
self._log("_scan failed")
def _scan(self, ign):
return self._scan_remote_collective()