From 75688d74b02c653f61676daf991665c80a45918d Mon Sep 17 00:00:00 2001 From: Alexey Leshchenko Date: Wed, 14 Apr 2021 22:31:28 +0300 Subject: [PATCH] Encoding = utf-8 --- loconotion/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loconotion/__main__.py b/loconotion/__main__.py index 70c9954..87446ab 100644 --- a/loconotion/__main__.py +++ b/loconotion/__main__.py @@ -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)