base: Fix syntax issue

This commit is contained in:
PapaTutuWawa 2021-11-25 13:37:33 +01:00
parent 6ba982b15a
commit 5522a3a699

View File

@ -47,7 +47,7 @@ class MiraBot:
# Also supports situations where the secret cannot be in the config file # Also supports situations where the secret cannot be in the config file
if "password" in self._config: if "password" in self._config:
self._password = self._config["password"] self._password = self._config["password"]
else if "password_file" in self._config: elif "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().replace("\n", "") self._password = f.read().replace("\n", "")
else: else: