This commit is contained in:
Miroslav Stampar
2023-08-01 11:33:13 +02:00
parent 0d19af8bbc
commit 21878560ee
2 changed files with 6 additions and 3 deletions

View File

@@ -181,8 +181,11 @@ class HashDB(object):
try:
self.cursor.execute("BEGIN TRANSACTION")
except:
# Reference: http://stackoverflow.com/a/25245731
self.cursor.close()
try:
# Reference: http://stackoverflow.com/a/25245731
self.cursor.close()
except sqlite3.ProgrammingError:
pass
threadData.hashDBCursor = None
self.cursor.execute("BEGIN TRANSACTION")
finally: