Revert "Catch error if Kodi DB cannot be used in WAL mode"

This commit is contained in:
croneter 2018-12-09 17:28:45 +01:00
parent 3a73b9de44
commit 07174a39f3

View file

@ -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 IOError:
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