From 8ed61410ab7eec854f2db9b20d33bd23863fe4db Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 9 Dec 2018 17:48:42 +0100 Subject: [PATCH] Revert "Catch error if Kodi DB cannot be used in WAL mode" This reverts commit e13273c5b8d8a6b775ed34cda8678cd2f1734c2c. --- resources/lib/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index aaa02c53..e9dbe3fe 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -403,10 +403,7 @@ def kodi_sql(media_type=None): else: db_path = v.DB_VIDEO_PATH conn = connect(db_path, timeout=5.0) - 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 journal_mode=WAL;') conn.execute('PRAGMA cache_size = -8000;') conn.execute('PRAGMA synchronous=NORMAL;') # Use transactions