소스 검색

Merge pull request #1460 from ThomasWaldmann/fix-init

add transaction_id assertion
enkore 9 년 전
부모
커밋
a951d23d27
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      borg/repository.py

+ 1 - 0
borg/repository.py

@@ -248,6 +248,7 @@ class Repository:
                  b'segments': self.segments,
                  b'compact': list(self.compact)}
         transaction_id = self.io.get_segments_transaction_id()
+        assert transaction_id is not None
         hints_file = os.path.join(self.path, 'hints.%d' % transaction_id)
         with open(hints_file + '.tmp', 'wb') as fd:
             msgpack.pack(hints, fd)