base: Replace newlines when reading secret from file

master 0.3.2
PapaTutuWawa 2 years ago
parent 99f5f740e9
commit 6ba982b15a

@ -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")

Loading…
Cancel
Save