From 7d6ef195fd4623b80f8e8c604fb39b68540730aa Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 18 Mar 2019 03:33:28 +0100 Subject: [PATCH] Don't allow to run db on different thread --- src/Db/Db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Db/Db.py b/src/Db/Db.py index 6aea38ea..00495033 100644 --- a/src/Db/Db.py +++ b/src/Db/Db.py @@ -82,7 +82,7 @@ class Db(object): self.log.debug("Created Db path: %s" % self.db_dir) if not os.path.isfile(self.db_path): self.log.debug("Db file not exist yet: %s" % self.db_path) - self.conn = sqlite3.connect(self.db_path, check_same_thread=False, isolation_level="DEFERRED") + self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED") self.conn.row_factory = sqlite3.Row self.conn.set_progress_handler(self.progress, 100000) self.cur = self.getCursor()