minor improvement

This commit is contained in:
Miroslav Stampar
2012-01-13 20:56:06 +00:00
parent 5e853cae64
commit 23117e72ca
2 changed files with 27 additions and 13 deletions

View File

@@ -2173,6 +2173,14 @@ def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
singleTimeLogMessage(infoMsg)
kb.adjustTimeDelay = False
def getLastRequestHTTPError():
"""
Returns last HTTP error code
"""
threadData = getCurrentThreadData()
return threadData.lastHTTPError[1] if threadData.lastHTTPError else None
def extractErrorMessage(page):
"""
Returns reported error message from page if it founds one