mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #1092 from ThomasWaldmann/fix-stdout
fix crashing borg extract --stdout, fixes #1064
This commit is contained in:
commit
4302ffbdbc
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue