1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

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).
This commit is contained in:
Thomas Waldmann 2020-12-22 22:26:52 +01:00
parent 2b992fe078
commit ecae0841b1

View file

@ -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