mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-09 18:02:56 +01:00
added socket timeout exception handling regarding that timeout message from Fahad Al Shunaiber
This commit is contained in:
parent
be81c20298
commit
5a6a01f24c
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
import cookielib
|
||||
import re
|
||||
import socket
|
||||
import urllib2
|
||||
|
||||
from lib.core.convert import urlencode
|
||||
|
|
@ -129,7 +130,7 @@ class Google:
|
|||
logger.log(8, responseMsg)
|
||||
except urllib2.HTTPError, e:
|
||||
page = e.read()
|
||||
except urllib2.URLError, e:
|
||||
except (urllib2.URLError, socket.error, socket.timeout), e:
|
||||
errMsg = "unable to connect to Google"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue