Skip to content

Commit

Permalink
fix(docs/conf.py): decode file content as utf-8 when reading pyprojec…
Browse files Browse the repository at this point in the history
…t.toml to handle encoding properly
  • Loading branch information
yxlao committed Dec 28, 2024
1 parent e0b81b1 commit c92e094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Read version from pyproject.toml
with open("../pyproject.toml", "rb") as f:
pyproject = tomli.loads(f.read())
pyproject = tomli.loads(f.read().decode("utf-8"))
version = pyproject["project"]["version"]

# Get git commit hash
Expand Down

0 comments on commit c92e094

Please sign in to comment.