[entropy.db.sql] do not catch any exception in commit()

This commit is contained in:
Fabio Erculiani
2012-08-12 12:08:23 +02:00
parent 3679fa966a
commit a8e2bbd3ba

View File

@@ -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)