Fix for an Issue #878

This commit is contained in:
Miroslav Stampar 2014-10-28 15:34:53 +01:00
parent 67279a1136
commit 8ea22c5124

View File

@ -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):