strip unsupported line endings from password file

This commit is contained in:
Tyler Kerr
2025-04-14 21:54:36 +00:00
committed by nicolargo
parent c738f482e9
commit 080be4d845

View File

@@ -118,4 +118,4 @@ class GlancesPassword:
"""Load the hashed password from the Glances folder."""
# Read the password file, if it exists
with builtins.open(self.password_file) as file_pwd:
return file_pwd.read()
return file_pwd.read().strip()