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