Minor language fix

This commit is contained in:
Miroslav Stampar 2013-07-31 09:24:34 +02:00
parent 941b2387c0
commit eaacbe0b12
6 changed files with 8 additions and 8 deletions

View File

@ -2739,7 +2739,7 @@ def decodeIntToUnicode(value):
def unhandledExceptionMessage():
"""
Returns detailed message about occured unhandled exception
Returns detailed message about occurred unhandled exception
"""
errMsg = "unhandled exception in %s, retry your " % VERSION_STRING
@ -3372,7 +3372,7 @@ def evaluateCode(code, variables=None):
except KeyboardInterrupt:
raise
except Exception, ex:
errMsg = "an error occured while evaluating provided code ('%s'). " % ex
errMsg = "an error occurred while evaluating provided code ('%s'). " % ex
raise SqlmapGenericException(errMsg)
def serializeObject(object_):

View File

@ -495,7 +495,7 @@ def _setCrawler():
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
except Exception, ex:
errMsg = "problem occured while crawling at '%s' ('%s')" % (target, ex)
errMsg = "problem occurred while crawling at '%s' ('%s')" % (target, ex)
logger.error(errMsg)
def _setGoogleDorking():
@ -625,7 +625,7 @@ def _findPageForms():
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
except Exception, ex:
errMsg = "problem occured while searching for forms at '%s' ('%s')" % (target, ex)
errMsg = "problem occurred while searching for forms at '%s' ('%s')" % (target, ex)
logger.error(errMsg)
def _setDBMSAuthentication():

View File

@ -140,7 +140,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
try:
thread.start()
except threadError, errMsg:
errMsg = "error occured while starting new thread ('%s')" % errMsg
errMsg = "error occurred while starting new thread ('%s')" % errMsg
logger.critical(errMsg)
break

View File

@ -90,7 +90,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
if kb.nullConnection and pageLength:
if not seqMatcher.a:
errMsg = "problem occured while retrieving original page content "
errMsg = "problem occurred while retrieving original page content "
errMsg += "which prevents sqlmap from continuation. Please rerun, "
errMsg += "and if the problem persists turn off any optimization switches"
raise SqlmapNoneDataException(errMsg)

View File

@ -434,7 +434,7 @@ class Connect(object):
conn.fp._sock.close()
conn.close()
except Exception, msg:
warnMsg = "problem occured during connection closing ('%s')" % msg
warnMsg = "problem occurred during connection closing ('%s')" % msg
logger.warn(warnMsg)
except urllib2.HTTPError, e:

View File

@ -54,7 +54,7 @@ class HTTPSConnection(httplib.HTTPSConnection):
else:
sock.close()
except ssl.SSLError, errMsg:
logger.debug("SSL connection error occured ('%s')" % errMsg)
logger.debug("SSL connection error occurred ('%s')" % errMsg)
if not success:
raise SqlmapConnectionException("can't establish SSL connection")