Browse Source

Fix stderr printing

master
JustAnotherArchivist 2 years ago
parent
commit
dba6d1fb0e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      zstdwarccat

+ 1
- 1
zstdwarccat View File

@@ -21,7 +21,7 @@ def get_dict(fp):
# Decompress with unzstd
p = subprocess.Popen(['unzstd'], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
out, err = p.communicate(d)
assert p.returncode == 0, f'unzstd exited non-zero: return code {p.returncode}, stderr: {p.stderr!r}'
assert p.returncode == 0, f'unzstd exited non-zero: return code {p.returncode}, stderr: {err!r}'
d = out
#elif d.startswith(b'\x37\xA4\x30\xEC'): # Uncompressed dict, nothing to do
return d


Loading…
Cancel
Save