Browse Source

Specify encoding when reading CHANGELOG.md. Fixes #314

pull/320/head
Pēteris Caune 5 years ago
parent
commit
830681d8f8
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/settings.py

+ 1
- 1
hc/settings.py 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]


Loading…
Cancel
Save