re throw all DB errors

This commit is contained in:
shaun 2016-11-07 22:27:25 +11:00
parent 8704be627d
commit 61d8a66df6
1 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,7 @@ 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:
except sqlite3.Error as error:
raise
except errors as error:
errStrings = ga.formatException()