Revert "Catch error if Kodi DB cannot be used in WAL mode"
This reverts commit e13273c5b8
.
This commit is contained in:
parent
e13273c5b8
commit
8ed61410ab
1 changed files with 1 additions and 4 deletions
|
@ -403,10 +403,7 @@ def kodi_sql(media_type=None):
|
||||||
else:
|
else:
|
||||||
db_path = v.DB_VIDEO_PATH
|
db_path = v.DB_VIDEO_PATH
|
||||||
conn = connect(db_path, timeout=5.0)
|
conn = connect(db_path, timeout=5.0)
|
||||||
try:
|
|
||||||
conn.execute('PRAGMA journal_mode=WAL;')
|
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 cache_size = -8000;')
|
||||||
conn.execute('PRAGMA synchronous=NORMAL;')
|
conn.execute('PRAGMA synchronous=NORMAL;')
|
||||||
# Use transactions
|
# Use transactions
|
||||||
|
|
Loading…
Reference in a new issue