patx/pickledb
Update pickledb.py
Commit 904d74b · Harrison Erd · 2025-02-11T23:47:17-05:00
Comments
No comments yet.
Diff
diff --git a/pickledb.py b/pickledb.py
index e483e95..686262e 100644
--- a/pickledb.py
+++ b/pickledb.py
@@ -270,7 +270,7 @@ class AsyncPickleDB(PickleDB):
try:
async with aiofiles.open(temp_location, "wb") as temp_file:
await temp_file.write(orjson.dumps(self.db))
- await asyncio.to_thread(os.replace, temp_location, self.location)
+ await asyncio.to_thread(os.replace, temp_location, self.location)
return True
except Exception as e:
print(f"Failed to save database: {e}")