From 6ba982b15a41580cfbbaf03a554ab32c182ed020 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 25 Nov 2021 12:53:34 +0100 Subject: [PATCH] base: Replace newlines when reading secret from file --- mira/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mira/base.py b/mira/base.py index 80b8774..be61813 100644 --- a/mira/base.py +++ b/mira/base.py @@ -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")