mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor refactoring
This commit is contained in:
@@ -116,5 +116,9 @@ class HashDB(object):
|
||||
def endTransaction(self):
|
||||
threadData = getCurrentThreadData()
|
||||
if threadData.inTransaction:
|
||||
self.cursor.execute('END TRANSACTION')
|
||||
threadData.inTransaction = False
|
||||
try:
|
||||
self.cursor.execute('END TRANSACTION')
|
||||
except sqlite3.OperationalError, ex:
|
||||
pass
|
||||
finally:
|
||||
threadData.inTransaction = False
|
||||
|
||||
Reference in New Issue
Block a user