Skip to content

Commit

Permalink
fix: specify file read encoding occur on Windows (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
codepaws authored Feb 23, 2022
1 parent 95adeb1 commit db7ff0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statuspage/statuspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def run_create(name, token, systems, org, private):

# add all the template files to the gh-pages branch
for template in tqdm(TEMPLATES, desc="Adding template files"):
with open(os.path.join(ROOT, "template", template), "r") as f:
with open(os.path.join(ROOT, "template", template), "r", encoding='utf-8') as f:
repo.create_file(
path=template,
message="initial",
Expand Down

0 comments on commit db7ff0d

Please sign in to comment.