memory (sqlite): minor comment move
This commit is contained in:
parent
610e88841a
commit
ccfdb695bc
1 changed files with 2 additions and 1 deletions
|
|
@ -127,12 +127,13 @@ NOT_IN_EXTRA = ('stanza_id', 'received_timestamp', 'update_uid') # keys which ar
|
|||
|
||||
|
||||
class ConnectionPool(adbapi.ConnectionPool):
|
||||
# Workaround to avoid IntegrityError causing (i)pdb to be launched in debug mode
|
||||
def _runQuery(self, trans, *args, **kw):
|
||||
retry = kw.pop('query_retry', 6)
|
||||
try:
|
||||
trans.execute(*args, **kw)
|
||||
except sqlite3.IntegrityError as e:
|
||||
# Workaround to avoid IntegrityError causing (i)pdb to be
|
||||
# launched in debug mode
|
||||
raise failure.Failure(e)
|
||||
except Exception as e:
|
||||
# FIXME: in case of error, we retry a couple of times
|
||||
|
|
|
|||
Loading…
Reference in a new issue