strip from password file

This commit is contained in:
2026-03-18 17:21:39 +01:00
parent 9bdaaf6c51
commit c564ee0b99

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