test: password file read fix?
This commit is contained in:
parent
612afbc7e0
commit
01d6f1f049
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class Passwords:
|
||||||
|
|
||||||
logger.info(f"Reading secret file at {settings.kp.secret}")
|
logger.info(f"Reading secret file at {settings.kp.secret}")
|
||||||
with open(settings.kp.secret, "r") as fh:
|
with open(settings.kp.secret, "r") as fh:
|
||||||
keyring.set_password("karl", "kp", fh.read().splitlines()[0])
|
keyring.set_password("karl", "kp", fh.read().splitlines()[0].replace('\r', '').strip())
|
||||||
logger.info(f"Database file: {settings.kp.file}")
|
logger.info(f"Database file: {settings.kp.file}")
|
||||||
self._path = settings.kp.file
|
self._path = settings.kp.file
|
||||||
if not os.path.exists(self._path):
|
if not os.path.exists(self._path):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue