From cea2d5809df7adb5b6a8e7bd8e1467325fa5315d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 27 Oct 2024 01:19:08 +0200 Subject: [PATCH] work around missing size/nfiles archive metadata, fixes #8491 --- src/borg/manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/manifest.py b/src/borg/manifest.py index 2bcb6e490a..9586b5895a 100644 --- a/src/borg/manifest.py +++ b/src/borg/manifest.py @@ -149,8 +149,8 @@ def _get_archive_meta(self, id: bytes) -> dict: exists=True, # repo has a valid archive item username=archive_item.username, hostname=archive_item.hostname, - size=archive_item.size, - nfiles=archive_item.nfiles, + size=archive_item.get("size", 0), + nfiles=archive_item.get("nfiles", 0), comment=archive_item.comment, # not always present? tags=tuple(sorted(getattr(archive_item, "tags", []))), # must be hashable )