From 61d8a66df6a4e41368190d4dd92ee2856f00152a Mon Sep 17 00:00:00 2001 From: shaun Date: Mon, 7 Nov 2016 22:27:25 +1100 Subject: [PATCH 1/2] re throw all DB errors --- resources/lib/objects/_common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) From 579e022f1d60fe15218c14933079ddc35abcd5cb Mon Sep 17 00:00:00 2001 From: shaun Date: Mon, 7 Nov 2016 22:30:10 +1100 Subject: [PATCH 2/2] bump ver --- addon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index a34f4975..b6c83969 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@