minor update

This commit is contained in:
Miroslav Stampar 2011-12-15 23:29:11 +00:00
parent 563c0c1066
commit 27d244b326

View File

@ -972,10 +972,13 @@ def checkConnection(suppressOutput=False):
errMsg = getUnicode(errMsg) errMsg = getUnicode(errMsg)
logger.critical(errMsg) logger.critical(errMsg)
msg = "it is not recommended to continue in this kind of cases. Do you want to quit and make sure that everything is set up properly? [Y/n] " if any(code in kb.httpErrorCodes for code in (404, )):
if readInput(msg, default="Y") not in ("n", "N"): msg = "it is not recommended to continue in this kind of cases. Do you want to quit and make sure that everything is set up properly? [Y/n] "
raise sqlmapSilentQuitException if readInput(msg, default="Y") not in ("n", "N"):
raise sqlmapSilentQuitException
else:
kb.ignoreNotFound = True
else: else:
kb.ignoreNotFound = True raise
return True return True