Specify encoding when reading CHANGELOG.md. Fixes #314

This commit is contained in:
Pēteris Caune 2019-12-19 09:59:10 +02:00
parent 0d2c6217d3
commit 830681d8f8
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -35,7 +35,7 @@ SUPPORT_EMAIL = os.getenv("SUPPORT_EMAIL")
USE_PAYMENTS = envbool("USE_PAYMENTS", "False")
REGISTRATION_OPEN = envbool("REGISTRATION_OPEN", "True")
VERSION = ""
with open(os.path.join(BASE_DIR, "CHANGELOG.md")) as f:
with open(os.path.join(BASE_DIR, "CHANGELOG.md"), encoding="utf-8") as f:
for line in f.readlines():
if line.startswith("## v"):
VERSION = line.split()[1]