mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
minor refactoring
This commit is contained in:
parent
0b54553a76
commit
81bd9a201b
8 changed files with 33 additions and 57 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue