From a7a948cb6807a855b3367bcdbf424bbf87a3616a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 27 Feb 2021 20:15:17 +0100 Subject: [PATCH] Don't need to specify keys --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 467370e..a5d4b42 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -136,7 +136,7 @@ class Logbot(Bot): room_path = os.path.join(self.output, room_name) self.log.info(f"Processing setup logic for: {room_path}") - if room not in self.db.keys(): + if room not in self.db: self.db[room] = {} if "messages" not in self.db[room]: self.db[room]["messages"] = {}