diff --git a/addon.xml b/addon.xml index a34f4975..b6c83969 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/objects/_common.py b/resources/lib/objects/_common.py index a6d286e5..754f594a 100644 --- a/resources/lib/objects/_common.py +++ b/resources/lib/objects/_common.py @@ -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)