Fix db syncing when
This commit is contained in:
@@ -49,7 +49,10 @@ async def pull():
|
|||||||
new_table = SqliteDict(DB + 'b', tablename=table)
|
new_table = SqliteDict(DB + 'b', tablename=table)
|
||||||
for key in new_table.keys():
|
for key in new_table.keys():
|
||||||
if key is not None:
|
if key is not None:
|
||||||
getattr(db, table)[key] = new_table[key]
|
try:
|
||||||
|
getattr(db, table)[key] = new_table[key]
|
||||||
|
except Exception as e:
|
||||||
|
assert e
|
||||||
new_table.close()
|
new_table.close()
|
||||||
|
|
||||||
await db.write()
|
await db.write()
|
||||||
|
|||||||
Reference in New Issue
Block a user