diff --git a/resources/lib/utils.py b/resources/lib/utils.py index e9dbe3fe..aaa02c53 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -403,7 +403,10 @@ def kodi_sql(media_type=None): else: db_path = v.DB_VIDEO_PATH conn = connect(db_path, timeout=5.0) - conn.execute('PRAGMA journal_mode=WAL;') + try: + conn.execute('PRAGMA journal_mode=WAL;') + except OperationalError: + LOG.warn('PKC could NOT activate sqlite WAL mode, sync might be slow') conn.execute('PRAGMA cache_size = -8000;') conn.execute('PRAGMA synchronous=NORMAL;') # Use transactions