From 9e5b01b3aec783ca624c92193fd8a22f90bc8125 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 14 Mar 2016 16:16:24 +0000 Subject: [PATCH] Swallow the error from Downloader._when_queue_is_empty. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/magic_folder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index fa41b506b..5774c8838 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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()