Skip to content

Commit

Permalink
Fix emoji branch compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Jul 23, 2020
1 parent f4c17da commit 2407562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def update_version(module_version_string=""):
gitfolder = module_folder[8:]

if os.path.isfile(os.path.join(gitfolder, "HEAD")):
head = open(os.path.join(gitfolder, "HEAD"), "r").readline().strip()
head = open(os.path.join(gitfolder, "HEAD"), "r", encoding="utf8").readline().strip()
if head.startswith("ref: "):
head = os.path.join(gitfolder, head[5:])
if os.path.isfile(head):
Expand Down

0 comments on commit 2407562

Please sign in to comment.