From c7f55fc3bad5e8988ee59635d284849b86db5c97 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 11 May 2024 22:16:10 -0700 Subject: [PATCH] make CHROME_USER_DATA_DIR error quieter --- archivebox/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archivebox/config.py b/archivebox/config.py index 939e1554..62600bf5 100644 --- a/archivebox/config.py +++ b/archivebox/config.py @@ -1299,7 +1299,10 @@ def check_system_config(config: ConfigDict=CONFIG) -> None: stderr() stderr(' Try removing /Default from the end e.g.:') stderr(' CHROME_USER_DATA_DIR="{}"'.format(config['CHROME_USER_DATA_DIR'].split('/Default')[0])) - raise SystemExit(2) + + # hard error is too annoying here, instead just set it to nothing + # raise SystemExit(2) + config['CHROME_USER_DATA_DIR'] = None def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None: