From f94e9fd58d3bfc4fa3e2d031dd568c18855e3e97 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Nov 2016 14:31:43 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/__main__.py') diff --git a/src/__main__.py b/src/__main__.py index dd94b45..6a296ec 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -546,7 +546,7 @@ if config_file is not None: code = None with open(config_file, 'rb') as script: code = script.read() - code = code.decode('utf-8', 'error') + '\n' + code = code.decode('utf-8', 'strict') + '\n' code = compile(code, config_file, 'exec') g, l = globals(), dict(locals()) for key in l: -- cgit v1.2.3-70-g09d2