mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Fix for an Issue #878
This commit is contained in:
parent
67279a1136
commit
8ea22c5124
|
@ -46,10 +46,8 @@ class Google(object):
|
|||
try:
|
||||
conn = self.opener.open("http://www.google.com/ncr")
|
||||
conn.info() # retrieve session cookie
|
||||
except urllib2.HTTPError, e:
|
||||
e.info()
|
||||
except urllib2.URLError:
|
||||
errMsg = "unable to connect to Google"
|
||||
except Exception, ex:
|
||||
errMsg = "unable to connect to Google ('%s')" % ex
|
||||
raise SqlmapConnectionException(errMsg)
|
||||
|
||||
def search(self, dork):
|
||||
|
|
Loading…
Reference in New Issue
Block a user