Skip to content
Snippets Groups Projects
Commit c947a193 authored by Arto K's avatar Arto K Committed by Sybren A. Stüvel
Browse files

--config parameter parsing was incompatible with python 3.5

parent bebc6349
Branches
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ def load_config(config_file: pathlib.Path = None, ...@@ -89,7 +89,7 @@ def load_config(config_file: pathlib.Path = None,
if not config_file.exists(): if not config_file.exists():
log.fatal('Config file %s does not exist', config_file) log.fatal('Config file %s does not exist', config_file)
raise SystemExit() raise SystemExit()
loaded = confparser.read(config_file, encoding='utf8') loaded = confparser.read(str(config_file), encoding='utf8')
else: else:
if not GLOBAL_CONFIG_FILE.exists(): if not GLOBAL_CONFIG_FILE.exists():
log.fatal('Config file %s does not exist', GLOBAL_CONFIG_FILE) log.fatal('Config file %s does not exist', GLOBAL_CONFIG_FILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment