🐛 fix(utils.py): change file mode from "rb" to "r" when reading secret from file to fix incorrect file mode

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-31 11:17:28 -03:00
commit 942c489552

View file

@ -43,5 +43,5 @@ def write_secret_to_file(path: Path, value: str) -> None:
def read_secret_from_file(path: Path) -> str:
with path.open("rb") as f:
with path.open("r") as f:
return f.read()