strip from password file

This commit is contained in:
2026-03-18 17:21:39 +01:00
parent 9e67d1bd6f
commit 7d723eeb0d

View File

@@ -40,7 +40,7 @@ class Config:
def read_password(password_field: str) -> str:
if Path(password_field).is_file():
with Path(password_field).open() as f:
return f.read()
return f.read().strip()
else:
return password_field