mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 08:22:15 +01:00
better way to handle that last commit problem
This commit is contained in:
parent
5bc07426e0
commit
af701cdaa2
1 changed files with 5 additions and 3 deletions
|
|
@ -201,12 +201,14 @@ class Connect:
|
|||
else:
|
||||
try:
|
||||
page = e.read()
|
||||
responseHeaders = e.info()
|
||||
except socket.timeout:
|
||||
warnMsg = "connection timed out to the target url"
|
||||
raise sqlmapConnectionException, warnMsg
|
||||
warnMsg = "connection timed out while trying "
|
||||
warnMsg += "to get error page information"
|
||||
logger.warn(warnMsg)
|
||||
page, responseHeaders = None, None
|
||||
code = e.code
|
||||
status = e.msg
|
||||
responseHeaders = e.info()
|
||||
|
||||
debugMsg = "got HTTP error code: %d" % code
|
||||
logger.debug(debugMsg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue