fix unicode encoding
This commit is contained in:
parent
5cc8765c49
commit
9fad002faf
1 changed files with 1 additions and 1 deletions
2
run.py
2
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),
|
||||
|
|
Loading…
Add table
Reference in a new issue