2
0
Эх сурвалжийг харах

Merge pull request #2443 from ThomasWaldmann/verify-data-defect-chunk-processing

verify_data: fix IntegrityError handling for defect chunks, fixes #2442
enkore 8 жил өмнө
parent
commit
6109d223ee
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/borg/archive.py

+ 1 - 1
src/borg/archive.py

@@ -1254,8 +1254,8 @@ class ArchiveChecker:
                     # local repo (fs): as chunks.iteritems loop usually pumps a lot of data through,
                     # a defect chunk is likely not in the fs cache any more and really gets re-read
                     # from the underlying media.
-                    encrypted_data = self.repository.get(defect_chunk)
                     try:
+                        encrypted_data = self.repository.get(defect_chunk)
                         _chunk_id = None if defect_chunk == Manifest.MANIFEST_ID else defect_chunk
                         self.key.decrypt(_chunk_id, encrypted_data)
                     except IntegrityError: