From 1c2ee36edc94ef3a34c4832f4d70d4482d277f73 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Wed, 25 Oct 2023 13:22:33 +0300 Subject: [PATCH] Fix db sync --- bot/modules/database/pull_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/modules/database/pull_db.py b/bot/modules/database/pull_db.py index 26228fc..a81e238 100644 --- a/bot/modules/database/pull_db.py +++ b/bot/modules/database/pull_db.py @@ -48,7 +48,8 @@ async def pull(): for table in db.__dict__.keys(): new_table = SqliteDict(DB + 'b', tablename=table) for key in new_table.keys(): - getattr(db, table)[key] = new_table[key] + if key is not None: + getattr(db, table)[key] = new_table[key] new_table.close() await db.write()