From b47d2829f9b23e658d03b109f0118476bc78df1b Mon Sep 17 00:00:00 2001 From: Robin Ole Heinemann Date: Wed, 14 May 2025 15:39:16 +0200 Subject: [PATCH] work around pypy bug ref: https://github.com/pypy/pypy/issues/3183 --- sbysrc/sby_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbysrc/sby_status.py b/sbysrc/sby_status.py index e4722c3..2b63070 100644 --- a/sbysrc/sby_status.py +++ b/sbysrc/sby_status.py @@ -68,8 +68,8 @@ class SbyStatusDb: self.db = sqlite3.connect(path, isolation_level=None, timeout=timeout) self.db.row_factory = sqlite3.Row - self.db.execute("PRAGMA journal_mode=WAL") - self.db.execute("PRAGMA synchronous=0") + self.db.execute("PRAGMA journal_mode=WAL").fetchone() + self.db.execute("PRAGMA synchronous=0").fetchone() if setup: self._setup()