mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
Add missing error handler in directory attr restore loop (2/2)
This commit is contained in:
parent
e365d64718
commit
26bf500566
1 changed files with 5 additions and 1 deletions
|
@ -372,7 +372,11 @@ def do_extract(self, args, repository, manifest, key, archive):
|
|||
continue
|
||||
if not args.dry_run:
|
||||
while dirs and not item[b'path'].startswith(dirs[-1][b'path']):
|
||||
archive.extract_item(dirs.pop(-1), stdout=stdout)
|
||||
dir_item = dirs.pop(-1)
|
||||
try:
|
||||
archive.extract_item(dir_item, stdout=stdout)
|
||||
except BackupOSError as e:
|
||||
self.print_warning('%s: %s', remove_surrogates(dir_item[b'path']), e)
|
||||
if output_list:
|
||||
logger.info(remove_surrogates(orig_path))
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue