mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
Add missing error handler in directory attr restore loop (1/2)
This commit is contained in:
parent
b241f95a4b
commit
e365d64718
1 changed files with 5 additions and 1 deletions
|
@ -389,7 +389,11 @@ def do_extract(self, args, repository, manifest, key, archive):
|
||||||
|
|
||||||
if not args.dry_run:
|
if not args.dry_run:
|
||||||
while dirs:
|
while dirs:
|
||||||
archive.extract_item(dirs.pop(-1))
|
dir_item = dirs.pop(-1)
|
||||||
|
try:
|
||||||
|
archive.extract_item(dir_item)
|
||||||
|
except BackupOSError as e:
|
||||||
|
self.print_warning('%s: %s', remove_surrogates(dir_item[b'path']), e)
|
||||||
for pattern in include_patterns:
|
for pattern in include_patterns:
|
||||||
if pattern.match_count == 0:
|
if pattern.match_count == 0:
|
||||||
self.print_warning("Include pattern '%s' never matched.", pattern)
|
self.print_warning("Include pattern '%s' never matched.", pattern)
|
||||||
|
|
Loading…
Reference in a new issue