base: Replace newlines when reading secret from file
This commit is contained in:
parent
99f5f740e9
commit
6ba982b15a
@ -49,7 +49,7 @@ class MiraBot:
|
|||||||
self._password = self._config["password"]
|
self._password = self._config["password"]
|
||||||
else if "password_file" in self._config:
|
else if "password_file" in self._config:
|
||||||
with open(self._config["password_file"], "r") as f:
|
with open(self._config["password_file"], "r") as f:
|
||||||
self._password = f.read()
|
self._password = f.read().replace("\n", "")
|
||||||
else:
|
else:
|
||||||
raise Exception("Neither password nor password_file specified")
|
raise Exception("Neither password nor password_file specified")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user