From: Daira Hopwood Date: Mon, 2 Nov 2015 22:12:38 +0000 (+0000) Subject: Add precondition to Uploader._process. X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/$rel_link?a=commitdiff_plain;h=533ddc06192327edc5df4ae1b8111544cab9c0d7;p=tahoe-lafs%2Ftahoe-lafs.git Add precondition to Uploader._process. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 4e0143b3..35db9597 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -300,6 +300,7 @@ class Uploader(QueueMixin): if relpath_u is None: return precondition(isinstance(relpath_u, unicode), relpath_u) + precondition(not relpath_u.endswith(u'/'), relpath_u) d = defer.succeed(None)