From c14b3934d3a602d806e68c2f92f05ad4dd115a54 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 26 Oct 2020 23:43:36 +0100 Subject: [PATCH 1/1] disable sqlite same thread check --- src/locator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locator.py b/src/locator.py index 7a57e09..ff74e0c 100644 --- a/src/locator.py +++ b/src/locator.py @@ -10,10 +10,10 @@ class Locator: self._base_dir = base_dir self._exclude_dir = exclude_dir if not os.path.isfile(db_file): - self._conn = sqlite3.connect(db_file) + self._conn = sqlite3.connect(db_file, check_same_thread=False) self._create_db() else: - self._conn = sqlite3.connect(db_file) + self._conn = sqlite3.connect(db_file, check_same_thread=False) logging.info("Opened locator for %s.", self._base_dir) def locate_file(self, name, size, meta_time): -- 2.39.5