Fix an incorrect addCallback.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 2 Jun 2015 22:37:44 +0000 (23:37 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:45:21 +0000 (16:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 825f88332e5318e5e9530ff72e1116b37d61d78e..8589f1b2505beedcba7fe29618bd76abd7d9df52 100644 (file)
@@ -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