From 37d99a2799fbf504db3a68d26cf557a4c5fd69f6 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 24 Jun 2015 12:50:36 -0700 Subject: [PATCH] minor corrections to use of deferred from last commit --- src/allmydata/frontends/magic_folder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 94b3a293..4adfffae 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -222,13 +222,13 @@ class MagicFolder(service.MultiService): pass else: def get_metadata(d): - self._parent.get_metadata_for(name) + return self._parent.get_metadata_for(name) d2.addCallback(get_metadata) def set_deleted(metadata): metadata['version'] += 1 metadata['deleted'] = True emptyUploadable = Data("", self._convergence) - self._parent.add_file(name, emptyUploadable, overwrite=True, metadata=metadata) + return self._parent.add_file(name, emptyUploadable, overwrite=True, metadata=metadata) d2.addCallback(set_deleted) d2.addCallback(lambda x: Exception("file does not exist")) return d2 -- 2.45.2