Merge pull request #3 from brycelowe/fix/password-binary-encoding

fix: remove encoding from password file reads
This commit is contained in:
Ethan Paul 2023-04-03 11:57:12 -04:00 committed by GitHub
commit 3586a4e277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,7 @@ def _load_password(
if fpath: if fpath:
try: try:
with Path(fpath).resolve().open("rb", encoding="utf-8") as infile: with Path(fpath).resolve().open("rb") as infile:
return VaultSecret(infile.read()) return VaultSecret(infile.read())
except (FileNotFoundError, PermissionError) as err: except (FileNotFoundError, PermissionError) as err:
raise RuntimeError( raise RuntimeError(