From 8b07d9bef6ff34a6c8b2622fad97919fc4a7ebc9 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Thu, 21 Mar 2024 16:57:58 +0100 Subject: [PATCH] Await cursor.execute() --- plugins/yjs/fps_yjs/ywebsocket/ystore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/yjs/fps_yjs/ywebsocket/ystore.py b/plugins/yjs/fps_yjs/ywebsocket/ystore.py index 03ccd45b..5cbea606 100644 --- a/plugins/yjs/fps_yjs/ywebsocket/ystore.py +++ b/plugins/yjs/fps_yjs/ywebsocket/ystore.py @@ -381,7 +381,7 @@ async def read(self) -> AsyncIterator[tuple[bytes, bytes, float]]: # type: igno try: async with self.lock: cursor = await self._db.cursor() - cursor.execute( + await cursor.execute( "SELECT yupdate, metadata, timestamp FROM yupdates WHERE path = ?", (self.path,), )