Browse Source

fix CHROME_USER_DATA_DIR split str error

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

+ 1 - 1
archivebox/config.py

@@ -1306,7 +1306,7 @@ def check_system_config(config: ConfigDict=CONFIG) -> None:
             if '/Default' in str(config['CHROME_USER_DATA_DIR']):
             if '/Default' in str(config['CHROME_USER_DATA_DIR']):
                 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(str(config['CHROME_USER_DATA_DIR']).split('/Default')[0]))
             
             
             # hard error is too annoying here, instead just set it to nothing
             # hard error is too annoying here, instead just set it to nothing
             # raise SystemExit(2)
             # raise SystemExit(2)