mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor update
This commit is contained in:
parent
4984ceac49
commit
b8a5a54395
|
@ -202,11 +202,9 @@ class Connect:
|
|||
page = e.read()
|
||||
responseHeaders = e.info()
|
||||
except socket.timeout:
|
||||
page, responseHeaders = None, None
|
||||
warnMsg = "connection timed out while trying "
|
||||
warnMsg += "to get error page information (%d)" % e.code
|
||||
logger.warn(warnMsg)
|
||||
|
||||
return None, None
|
||||
|
||||
code = e.code
|
||||
|
|
|
@ -129,7 +129,13 @@ class Google:
|
|||
|
||||
logger.log(8, responseMsg)
|
||||
except urllib2.HTTPError, e:
|
||||
page = e.read()
|
||||
try:
|
||||
page = e.read()
|
||||
except socket.timeout:
|
||||
warnMsg = "connection timed out while trying "
|
||||
warnMsg += "to get error page information (%d)" % e.code
|
||||
logger.warn(warnMsg)
|
||||
return None
|
||||
except (urllib2.URLError, socket.error, socket.timeout), e:
|
||||
errMsg = "unable to connect to Google"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
|
|
Loading…
Reference in New Issue
Block a user