Skip to content

Commit

Permalink
extract: add generic exception handler when setting xattrs, fixes bor…
Browse files Browse the repository at this point in the history
…gbackup#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).
  • Loading branch information
ThomasWaldmann committed Dec 25, 2020
1 parent 2b992fe commit ecae084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/xattr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ecae084

Please sign in to comment.