mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-22 06:09:02 +00:00
Minor stability patch
This commit is contained in:
@@ -115,7 +115,6 @@ def main():
|
||||
|
||||
try:
|
||||
checkEnvironment()
|
||||
|
||||
setPaths(modulePath())
|
||||
banner()
|
||||
|
||||
@@ -203,9 +202,10 @@ def main():
|
||||
print
|
||||
errMsg = unhandledExceptionMessage()
|
||||
excMsg = traceback.format_exc()
|
||||
valid = checkIntegrity()
|
||||
|
||||
try:
|
||||
if not checkIntegrity():
|
||||
if valid is False:
|
||||
errMsg = "code integrity check failed (turning off automatic issue creation). "
|
||||
errMsg += "You should retrieve the latest development version from official GitHub "
|
||||
errMsg += "repository at '%s'" % GIT_PAGE
|
||||
@@ -285,7 +285,7 @@ def main():
|
||||
errMsg = maskSensitiveData(errMsg)
|
||||
excMsg = maskSensitiveData(excMsg)
|
||||
|
||||
if conf.get("api"):
|
||||
if conf.get("api") or not valid:
|
||||
logger.critical("%s\n%s" % (errMsg, excMsg))
|
||||
else:
|
||||
logger.critical(errMsg)
|
||||
|
||||
Reference in New Issue
Block a user