From 7d8aba5db3e99bfa6edd1f0233a2a566f5ebdb7f Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 2 Jun 2015 23:37:44 +0100 Subject: [PATCH] Fix an incorrect addCallback. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/drop_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 825f8833..8589f1b2 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -220,7 +220,7 @@ class DropUploader(service.MultiService): def _failed(f): self._log("failed to create subdirectory %r due to %r" % (path, f)) self._stats_provider.count('drop_upload.objects_failed', 1) - d2.addCallback(_failed) + d2.addErrback(_failed) d2.addCallback(lambda ign: self._scan(path)) return d2 -- 2.45.2