mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-08 18:35:10 +00:00
Update database.py
This commit is contained in:
parent
11af93ccc2
commit
e06f138d5d
2 changed files with 15 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
import logging
|
||||
import os
|
||||
import sqlite3
|
||||
|
||||
import xbmc
|
||||
import xbmcvfs
|
||||
|
@ -28,6 +29,9 @@ def catch_except(errors=(Exception, ), default_value=False):
|
|||
def wrapper(*args, **kwargs):
|
||||
try:
|
||||
return func(*args, **kwargs)
|
||||
except sqlite3.OperationalError as error:
|
||||
if "database is locked" in error:
|
||||
raise
|
||||
except errors as error:
|
||||
errStrings = ga.formatException()
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1], True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue