1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-01 04:02:34 +00:00

fix crashing borg extract --stdout, fixes #1064

This commit is contained in:
Thomas Waldmann 2016-05-24 22:40:20 +02:00
parent e134f652ce
commit 9fff2af134

View file

@ -371,7 +371,7 @@ def extract_item(self, item, restore_attrs=True, dry_run=False, stdout=False, sp
"""
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: