diff --git a/borg/repository.py b/borg/repository.py index 686f30a7d..c33f49da9 100644 --- a/borg/repository.py +++ b/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)