Merge pull request #52 from flipio-ru/encoding

Set saved page encoding to utf-8
This commit is contained in:
Leonardo Cavaletti 2021-04-18 14:15:12 +01:00 committed by GitHub
commit b8a59cda17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ def main():
log.critical(f"Connection error")
else:
if Path(args.target).is_file():
with open(args.target) as f:
with open(args.target, encoding="utf-8") as f:
parsed_config = toml.loads(f.read())
log.info(f"Initialising parser with configuration file")
log.debug(parsed_config)