From 9fad002faf792a3d7e0289da9703fa3d2537f943 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sat, 31 Jul 2021 14:22:24 +0200 Subject: [PATCH] fix unicode encoding --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 854ea82..0d4b92c 100644 --- a/run.py +++ b/run.py @@ -92,7 +92,7 @@ def stacosys_server(config_pathname): app.logger.addHandler(mail_handler) # configure scheduler - conf.set(ConfigParameter.SITE_TOKEN, hashlib.sha1(conf.get(ConfigParameter.SITE_NAME)).hexdigest()) + conf.put(ConfigParameter.SITE_TOKEN, hashlib.sha1(conf.get(ConfigParameter.SITE_NAME).encode('utf-8')).hexdigest()) scheduler.configure( conf.get_int(ConfigParameter.IMAP_POLLING), conf.get_int(ConfigParameter.COMMENT_POLLING),