Skip to content

Commit acce97b

Browse files
committed
Patch related to the #5567
1 parent 124c390 commit acce97b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/core/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ def _setPreprocessFunctions():
929929
else:
930930
try:
931931
function(_urllib.request.Request("http://localhost"))
932-
except:
932+
except Exception as ex:
933933
tbMsg = traceback.format_exc()
934934

935935
if conf.debug:
@@ -943,8 +943,8 @@ def _setPreprocessFunctions():
943943

944944
errMsg = "function 'preprocess(req)' "
945945
errMsg += "in preprocess script '%s' " % script
946-
errMsg += "appears to be invalid "
947-
errMsg += "(Note: find template script at '%s')" % filename
946+
errMsg += "had issues in a test run ('%s'). " % getSafeExString(ex)
947+
errMsg += "You can find a template script at '%s'" % filename
948948
raise SqlmapGenericException(errMsg)
949949

950950
def _setPostprocessFunctions():

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.11.0"
23+
VERSION = "1.7.11.1"
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)

0 commit comments

Comments
 (0)