From a8e2bbd3baf82079c40ea2b28cad11effc1906f7 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 12 Aug 2012 12:08:23 +0200 Subject: [PATCH] [entropy.db.sql] do not catch any exception in commit() --- lib/entropy/db/sql.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/entropy/db/sql.py b/lib/entropy/db/sql.py index 3da4b0866..9ea489968 100644 --- a/lib/entropy/db/sql.py +++ b/lib/entropy/db/sql.py @@ -766,10 +766,7 @@ class EntropySQLRepository(EntropyRepositoryBase): # database file are opened and used before data is actually written # to disk, causing a tricky race condition hard to exploit. # So, FIRST commit changes, then call plugins. - try: - self._connection().commit() - except Error: - pass + self._connection().commit() super(EntropySQLRepository, self).commit( force = force, no_plugins = no_plugins)