Skip to content

Commit

Permalink
Merge pull request #8492 from ThomasWaldmann/fix-archive-size-transfer
Browse files Browse the repository at this point in the history
work around missing size/nfiles archive metadata, fixes #8491
  • Loading branch information
ThomasWaldmann authored Oct 27, 2024
2 parents f7f2f23 + cea2d58 commit c7c204e
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 c7c204e

Please sign in to comment.