Fix check of exception value
This commit is contained in:
parent
cc20464c15
commit
da66c62f81
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def catch_operationalerrors(method):
|
||||||
try:
|
try:
|
||||||
return method(self, *args, **kwargs)
|
return method(self, *args, **kwargs)
|
||||||
except sqlite3.OperationalError as err:
|
except sqlite3.OperationalError as err:
|
||||||
if 'database is locked' not in err:
|
if err.args[0] and 'database is locked' not in err.args[0]:
|
||||||
# Not an error we want to catch, so reraise it
|
# Not an error we want to catch, so reraise it
|
||||||
raise
|
raise
|
||||||
attempts -= 1
|
attempts -= 1
|
||||||
|
|
Loading…
Reference in a new issue