# HG changeset patch # User Goffi # Date 1546590417 -3600 # Node ID 6487b8855c9a583c248ff728f395003fb37b8419 # Parent 1e2f0856c8455a52e83f0ce19ee8057d9ac842cc memory (sqlite): minor comment move diff -r 1e2f0856c845 -r 6487b8855c9a sat/memory/sqlite.py --- a/sat/memory/sqlite.py Fri Jan 04 09:21:16 2019 +0100 +++ b/sat/memory/sqlite.py Fri Jan 04 09:26:57 2019 +0100 @@ -127,12 +127,13 @@ 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