Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ea22c5

Browse files
committed
Fix for an Issue #878
1 parent 67279a1 commit 8ea22c5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/utils/google.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ def __init__(self, handlers):
4646
try:
4747
conn = self.opener.open("http://www.google.com/ncr")
4848
conn.info() # retrieve session cookie
49-
except urllib2.HTTPError, e:
50-
e.info()
51-
except urllib2.URLError:
52-
errMsg = "unable to connect to Google"
49+
except Exception, ex:
50+
errMsg = "unable to connect to Google ('%s')" % ex
5351
raise SqlmapConnectionException(errMsg)
5452

5553
def search(self, dork):

0 commit comments

Comments
 (0)