소스 검색

old archives might not have a comment in metadata, see #9208

guess the default is only needed when transferring
very old archives from borg1 repos.
Thomas Waldmann 1 주 전
부모
커밋
352f982393
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/manifest.py

+ 1 - 1
src/borg/manifest.py

@@ -151,7 +151,7 @@ class Archives:
                 hostname=archive_item.hostname,
                 size=archive_item.get("size", 0),
                 nfiles=archive_item.get("nfiles", 0),
-                comment=archive_item.comment,  # not always present?
+                comment=archive_item.get("comment", ""),
                 tags=tuple(sorted(getattr(archive_item, "tags", []))),  # must be hashable
             )
         return metadata