base: Replace newlines when reading secret from file

This commit is contained in:
PapaTutuWawa 2021-11-25 12:53:34 +01:00
parent 99f5f740e9
commit 6ba982b15a

View File

@ -49,7 +49,7 @@ class MiraBot:
self._password = self._config["password"]
else if "password_file" in self._config:
with open(self._config["password_file"], "r") as f:
self._password = f.read()
self._password = f.read().replace("\n", "")
else:
raise Exception("Neither password nor password_file specified")