Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bcf998

Browse files
committed
Minor patch
1 parent 2f325e9 commit 6bcf998

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

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

sqlmap.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,12 @@ def main():
397397
conf.hashDB.flush(True)
398398

399399
if conf.get("harFile"):
400-
with openFile(conf.harFile, "w+b") as f:
401-
json.dump(conf.httpCollector.obtain(), fp=f, indent=4, separators=(',', ': '))
400+
try:
401+
with openFile(conf.harFile, "w+b") as f:
402+
json.dump(conf.httpCollector.obtain(), fp=f, indent=4, separators=(',', ': '))
403+
except SqlmapBaseException as ex:
404+
errMsg = getSafeExString(ex)
405+
logger.critical(errMsg)
402406

403407
if conf.get("api"):
404408
conf.databaseCursor.disconnect()

0 commit comments

Comments
 (0)