From ecae0841b13ac9e59fb51fc1714479270b66356c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 22 Dec 2020 22:26:52 +0100 Subject: [PATCH] extract: add generic exception handler when setting xattrs, fixes #5092 emit a warning message giving the path, xattr key and error message. also: continue trying to restore other xattrs and bsdflags afterwards (it did not continue with this before this fix). --- src/borg/xattr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/xattr.py b/src/borg/xattr.py index 5bfc1b677..e70be001f 100644 --- a/src/borg/xattr.py +++ b/src/borg/xattr.py @@ -147,5 +147,5 @@ def set_all(path, xattrs, follow_symlinks=False): logger.warning('%s: No space left on device while setting extended attribute %s (len = %d)' % ( path_str, k_str, len(v))) else: - raise + logger.warning('%s: when setting extended attribute %s: %s' % (path_str, k_str, str(e))) return warning