[entropy.db] always commit() sqlite3 Connection instances before closing
This commit is contained in:
@@ -482,6 +482,8 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
|
||||
pass
|
||||
try:
|
||||
conn = self.__connection_cache.pop((th_id, pid))
|
||||
if not self.readOnly:
|
||||
conn.commit()
|
||||
conn.close()
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user