Skip to content

Commit

Permalink
work around missing size/nfiles archive metadata, fixes #8491
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Oct 26, 2024
1 parent f7f2f23 commit cea2d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/borg/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit cea2d58

Please sign in to comment.