fix: remove encoding from password file reads

The password files are opened in binary mode so an encoding argument isn't necessary and causes the script to crash.

Fixes #2
This commit is contained in:
Bryce Lowe 2023-02-23 16:01:19 -08:00
parent 90e4a32753
commit 45ab9addb3
No known key found for this signature in database
GPG Key ID: F163A6C447CD873A
1 changed files with 1 additions and 1 deletions

View File

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