From e365d64718f5304c3e2561d86ab277019a7ca3c7 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Fri, 1 Jul 2016 00:06:21 +0200 Subject: [PATCH] Add missing error handler in directory attr restore loop (1/2) --- borg/archiver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/borg/archiver.py b/borg/archiver.py index ac4ad9a41..594bc6162 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -389,7 +389,11 @@ class Archiver: if not args.dry_run: 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: if pattern.match_count == 0: self.print_warning("Include pattern '%s' never matched.", pattern)