From a09211993cbee833650f317ee1089a5e4c6efea8 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 13 Apr 2021 04:03:47 -0400 Subject: [PATCH] whoops --- archivebox/main.py | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/main.py b/archivebox/main.py index 48a8f021..0107bac0 100644 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -952,7 +952,7 @@ def setup(out_dir: Path=OUTPUT_DIR) -> None: ], capture_output=False, cwd=out_dir) run_shell([PYTHON_BINARY, '-m', 'playwright', 'install', 'chromium'], capture_output=False, cwd=out_dir) proc = run_shell([PYTHON_BINARY, '-c', 'from playwright.sync_api import sync_playwright; print(sync_playwright().start().chromium.executable_path)'], capture_output=True, text=True, cwd=out_dir) - NEW_CHROME_BINARY = proc.stdout.decode().strip() if isinstance(bytes, proc.stdout) else proc.stdout.strip() + NEW_CHROME_BINARY = proc.stdout.decode().strip() if isinstance(proc.stdout, bytes) else proc.stdout.strip() assert NEW_CHROME_BINARY and len(NEW_CHROME_BINARY), 'CHROME_BINARY must contain a path' config(f'CHROME_BINARY={NEW_CHROME_BINARY}', set=True, out_dir=out_dir) except BaseException as e: diff --git a/package.json b/package.json index 35d0b60e..ac6b40c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "archivebox", - "version": "0.6.0", + "version": "0.6.1", "description": "ArchiveBox: The self-hosted internet archive", "author": "Nick Sweeting ", "repository": "github:ArchiveBox/ArchiveBox",