From 0531d477215ea731c381190b4b6e516e055b5752 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 24 Oct 2019 03:08:45 +0200 Subject: [PATCH] Fix shutdown errors on macOS --- 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 24c0e9f5..7eb801de 100644 --- a/src/Db/Db.py +++ b/src/Db/Db.py @@ -89,7 +89,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, isolation_level="DEFERRED") + self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED", check_same_thread=False) self.conn.row_factory = sqlite3.Row self.conn.set_progress_handler(self.progress, 5000000) self.cur = self.getCursor()