mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
re throw all DB errors
This commit is contained in:
parent
8704be627d
commit
61d8a66df6
1 changed files with 2 additions and 3 deletions
|
@ -29,9 +29,8 @@ 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 sqlite3.Error as error:
|
||||
raise
|
||||
except errors as error:
|
||||
errStrings = ga.formatException()
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1], True)
|
||||
|
|
Loading…
Reference in a new issue