mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +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,8 +29,7 @@ def catch_except(errors=(Exception, ), default_value=False):
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
except sqlite3.OperationalError as error:
|
except sqlite3.Error as error:
|
||||||
if "database is locked" in error:
|
|
||||||
raise
|
raise
|
||||||
except errors as error:
|
except errors as error:
|
||||||
errStrings = ga.formatException()
|
errStrings = ga.formatException()
|
||||||
|
|
Loading…
Reference in a new issue