Don't need to specify keys

This commit is contained in:
Luke Murphy 2021-02-27 20:15:17 +01:00
parent 0a3ed438af
commit a7a948cb68
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -136,7 +136,7 @@ class Logbot(Bot):
room_path = os.path.join(self.output, room_name) room_path = os.path.join(self.output, room_name)
self.log.info(f"Processing setup logic for: {room_path}") 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] = {} self.db[room] = {}
if "messages" not in self.db[room]: if "messages" not in self.db[room]:
self.db[room]["messages"] = {} self.db[room]["messages"] = {}