Skip to content

Commit 2187856

Browse files
committed
Fixes #5481
1 parent 0d19af8 commit 2187856

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.7.2"
23+
VERSION = "1.7.8.0"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/hashdb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,11 @@ def beginTransaction(self):
181181
try:
182182
self.cursor.execute("BEGIN TRANSACTION")
183183
except:
184-
# Reference: http://stackoverflow.com/a/25245731
185-
self.cursor.close()
184+
try:
185+
# Reference: http://stackoverflow.com/a/25245731
186+
self.cursor.close()
187+
except sqlite3.ProgrammingError:
188+
pass
186189
threadData.hashDBCursor = None
187190
self.cursor.execute("BEGIN TRANSACTION")
188191
finally:

0 commit comments

Comments
 (0)