Skip SQLite thread check for macOS compatibility

This commit is contained in:
shortcutme 2017-01-21 23:00:37 +01:00
parent 8258da2e46
commit 7938689f95
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -55,7 +55,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)
self.conn = sqlite3.connect(self.db_path, check_same_thread=False)
self.conn.row_factory = sqlite3.Row
self.conn.isolation_level = None
self.cur = self.getCursor()