From 26bf500566ff834953ed364a112d72f4c5b259af Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Fri, 1 Jul 2016 00:07:38 +0200 Subject: [PATCH] Add missing error handler in directory attr restore loop (2/2) --- borg/archiver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/borg/archiver.py b/borg/archiver.py index 594bc6162..5f01a39fa 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -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: