changeset 2747:6487b8855c9a

memory (sqlite): minor comment move
author Goffi <goffi@goffi.org>
date Fri, 04 Jan 2019 09:26:57 +0100
parents 1e2f0856c845
children ec9445c04a36
files sat/memory/sqlite.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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