forked from GithubBackups/healthchecks
Specify encoding when reading CHANGELOG.md. Fixes #314
This commit is contained in:
parent
0d2c6217d3
commit
830681d8f8
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user