fix: CHROME_USER_DATA_DIR was causing an error after the update to posix paths

This commit is contained in:
Cristian 2020-10-29 11:09:18 -05:00
parent 5faadee7d1
commit 81dd626b85

View file

@ -868,7 +868,7 @@ def check_system_config(config: ConfigDict=CONFIG) -> None:
stderr(' Make sure you set it to a Chrome user data directory containing a Default profile folder.')
stderr(' For more info see:')
stderr(' https://github.com/pirate/ArchiveBox/wiki/Configuration#CHROME_USER_DATA_DIR')
if 'Default' in config['CHROME_USER_DATA_DIR']:
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]))