mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 11:23:44 +03:00
better way to handle that last commit problem
This commit is contained in:
parent
5bc07426e0
commit
af701cdaa2
|
@ -201,12 +201,14 @@ class Connect:
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
page = e.read()
|
page = e.read()
|
||||||
|
responseHeaders = e.info()
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
warnMsg = "connection timed out to the target url"
|
warnMsg = "connection timed out while trying "
|
||||||
raise sqlmapConnectionException, warnMsg
|
warnMsg += "to get error page information"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
page, responseHeaders = None, None
|
||||||
code = e.code
|
code = e.code
|
||||||
status = e.msg
|
status = e.msg
|
||||||
responseHeaders = e.info()
|
|
||||||
|
|
||||||
debugMsg = "got HTTP error code: %d" % code
|
debugMsg = "got HTTP error code: %d" % code
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user