From da8f729174e70afa785a4cde8043b19ce42331d0 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 22 Oct 2013 14:14:33 +0800 Subject: [PATCH] Set return value for import_file to match success/failure Otherwise, calypso --import exits with random values Signed-off-by: Keith Packard --- calypso/webdav.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calypso/webdav.py b/calypso/webdav.py index 2fa635f..913ef9e 100644 --- a/calypso/webdav.py +++ b/calypso/webdav.py @@ -490,9 +490,10 @@ class Collection(object): else: self.create_file(new_item, context={}) self.log.debug("Added %s from %s", new_item.name, path) + return True except Exception, ex: self.log.exception("Failed to import: %s", path) - raise + return False def write(self, headers=None, items=None): return True -- 2.34.1