Encoding = utf-8

This commit is contained in:
Alexey Leshchenko 2021-04-14 22:31:28 +03:00
parent 001c332839
commit 75688d74b0

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)