Browse Source

fix crashing borg extract --stdout, fixes #1064

Thomas Waldmann 9 năm trước cách đây
mục cha
commit
9fff2af134
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      borg/archive.py

+ 1 - 1
borg/archive.py

@@ -371,7 +371,7 @@ Number of files: {0.stats.nfiles}'''.format(
         """
         if dry_run or stdout:
             if b'chunks' in item:
-                for data in self.pipeline.fetch_many([c.id for c in item[b'chunks']], is_preloaded=True):
+                for _, data in self.pipeline.fetch_many([c.id for c in item[b'chunks']], is_preloaded=True):
                     if stdout:
                         sys.stdout.buffer.write(data)
                 if stdout: