Browse Source

make CHROME_USER_DATA_DIR error quieter

Nick Sweeting 1 year ago
parent
commit
c7f55fc3ba
1 changed files with 4 additions and 1 deletions
  1. 4 1
      archivebox/config.py

+ 4 - 1
archivebox/config.py

@@ -1299,7 +1299,10 @@ def check_system_config(config: ConfigDict=CONFIG) -> None:
                 stderr()
                 stderr()
                 stderr('    Try removing /Default from the end e.g.:')
                 stderr('    Try removing /Default from the end e.g.:')
                 stderr('        CHROME_USER_DATA_DIR="{}"'.format(config['CHROME_USER_DATA_DIR'].split('/Default')[0]))
                 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:
 def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None: