From 91e65f2f2adf3142a8fdf49ea1795e9d0f02f1a0 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Fri, 26 Aug 2022 08:34:00 +0200 Subject: [PATCH] Fix the utf8 encoding for yaml --- web/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/run.py b/web/run.py index 3e8e253..fe82ce0 100755 --- a/web/run.py +++ b/web/run.py @@ -53,7 +53,9 @@ with open(get_path('../VERSION'), 'r') as version_file: version = version_file.read().strip() # CONFIG -with open(get_path('../config.yml'), 'r') as config_file: + + +with open(get_path('../config.yml'), 'r', encoding='utf8') as config_file: config = yaml_load(config_file.read(), Loader=Loader) FILE_DATE_FMT = "%Y-%m-%dT%H:%M:%S" -- libgit2 0.21.2