소스 검색

fix CHROME_USER_DATA_DIR split str error

Nick Sweeting 1 년 전
부모
커밋
07d80db5aa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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']):
                 stderr()
                 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
             # raise SystemExit(2)