Update pickledb.py

Commit 904d74b · Harrison Erd · 2025-02-11T23:47:17-05:00

Changeset
904d74b98da8b36ffb6fe22e752d2c2ac6b98f96
Parents
7e09904a8ab68a621d8a52438c9dc694cb12cb15

View source at this commit

Comments

No comments yet.

Log in to comment

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}")