summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-11-25 14:31:04 +0100
committerMattias Andrée <maandree@kth.se>2016-11-25 14:31:04 +0100
commitb12b82b7bc0f1e63d32dcf1d20991ac68a31be9a (patch)
tree5c395b69ee3a90b395f98684b99ecd78ea232e5c /src
parentFix icc parsing (diff)
downloadblueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.gz
blueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.bz2
blueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py
index e0f718b..b961629 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -305,7 +305,7 @@ def signal_SIGUSR1(signum, frame):
# Decode it, assume it is in UTF-8, and append
# an line ending in case the the last line is
# not empty, which would give us an exception.
- code = code.decode('utf8', 'error') + '\n'
+ code = code.decode('utf8', 'strict') + '\n'
# Compile the script,
code = compile(code, config_file, 'exec')
# and run it, with it have the same
@@ -719,7 +719,7 @@ else:
# Decode configurion script file and add a line break
# at the end to ensure that the last line is empty.
# If it is not, we will get errors.
- code = code.decode('utf-8', 'error') + '\n'
+ code = code.decode('utf-8', 'strict') + '\n'
# Compile the configuration script,
code = compile(code, config_file, 'exec')
# and run it, with it have the same