1
0
Fork 0

fix: Mercury extractor error was incorrectly initialized

This commit is contained in:
Cristian 2021-01-07 09:22:46 -05:00
parent e9e4adfc34
commit 6031ffa3b2

View file

@ -28,7 +28,7 @@ def ShellError(cmd: List[str], result: CompletedProcess, lines: int=20) -> Archi
# parse out last line of stderr # parse out last line of stderr
return ArchiveError( return ArchiveError(
f'Got {cmd[0]} response code: {result.returncode}).', f'Got {cmd[0]} response code: {result.returncode}).',
*( " ".join(
line.strip() line.strip()
for line in (result.stdout + result.stderr).decode().rsplit('\n', lines)[-lines:] for line in (result.stdout + result.stderr).decode().rsplit('\n', lines)[-lines:]
if line.strip() if line.strip()