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

Skip to content

Commit 657d711

Browse files
committed
Fixes #1453
1 parent 78bbf5d commit 657d711

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/utils/google.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def search(self, dork):
9797
except urllib2.HTTPError, e:
9898
try:
9999
page = e.read()
100-
except socket.timeout:
101-
warnMsg = "connection timed out while trying "
102-
warnMsg += "to get error page information (%d)" % e.code
100+
except Exception, ex:
101+
warnMsg = "problem occurred while trying to get "
102+
warnMsg += "an error page information (%s)" % getSafeExString(ex)
103103
logger.critical(warnMsg)
104104
return None
105105
except (urllib2.URLError, httplib.error, socket.error, socket.timeout, socks.ProxyError):

0 commit comments

Comments
 (0)