This commit is contained in:
Christopher Pickering 2021-10-07 15:35:19 +02:00
parent eb8571b0b4
commit 479326873a
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84

View file

@ -51,7 +51,7 @@ def load_pyproject_settings(src: Path) -> Dict:
pyproject_file = find_pyproject(src)
if pyproject_file:
content = tomlkit.parse(pyproject_file.read_text())
content = tomlkit.parse(pyproject_file.read_text(encoding="utf8"))
try:
djlint_content = content["tool"]["djlint"] # type: ignore
except KeyError: