From 6031ffa3b245530d0f0544d52454af5956718ec5 Mon Sep 17 00:00:00 2001 From: Cristian Date: Thu, 7 Jan 2021 09:22:46 -0500 Subject: [PATCH] fix: Mercury extractor error was incorrectly initialized --- archivebox/extractors/mercury.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/extractors/mercury.py b/archivebox/extractors/mercury.py index 741c3291..07c02420 100644 --- a/archivebox/extractors/mercury.py +++ b/archivebox/extractors/mercury.py @@ -28,7 +28,7 @@ def ShellError(cmd: List[str], result: CompletedProcess, lines: int=20) -> Archi # parse out last line of stderr return ArchiveError( f'Got {cmd[0]} response code: {result.returncode}).', - *( + " ".join( line.strip() for line in (result.stdout + result.stderr).decode().rsplit('\n', lines)[-lines:] if line.strip()