Add precondition to Uploader._process.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-11-02 22:12:38 +00:00 committed by Brian Warner
parent 583066b364
commit 5f98d73216

View File

@ -300,6 +300,7 @@ class Uploader(QueueMixin):
if relpath_u is None: if relpath_u is None:
return return
precondition(isinstance(relpath_u, unicode), relpath_u) precondition(isinstance(relpath_u, unicode), relpath_u)
precondition(not relpath_u.endswith(u'/'), relpath_u)
d = defer.succeed(None) d = defer.succeed(None)