Get rid of last returnValue use

Supporting it with Eliot is challenging and we don't actually need it.
This commit is contained in:
Jean-Paul Calderone 2019-02-26 10:09:25 -05:00
parent 1d97486c29
commit 354dceda79
2 changed files with 5 additions and 3 deletions

View File

@ -1572,10 +1572,9 @@ class Downloader(QueueMixin, WriteFileMixin):
while True:
try:
data = yield self._scan_remote_collective(scan_self=True)
yield self._scan_remote_collective(scan_self=True)
self._begin_processing()
defer.returnValue(data)
break
return
except Exception:
self._status_reporter(
False, "Initial scan has failed",

View File

@ -57,3 +57,6 @@ import sys
if sys.platform == "win32":
from allmydata.windows.fixups import initialize
initialize()
from eliot import to_file
to_file(open("eliot.log", "w"))