From 5bade7947b25251d7eb03b7a51a8ae66f1c67e3f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 27 Sep 2015 16:09:02 +0200 Subject: [PATCH] Fixes #1435 --- lib/utils/google.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/google.py b/lib/utils/google.py index 677fc4c72..0fec576e6 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -31,6 +31,8 @@ from lib.core.settings import HTTP_ACCEPT_ENCODING_HEADER_VALUE from lib.core.settings import UNICODE_ENCODING from lib.request.basic import decodePage from lib.request.httpshandler import HTTPSHandler +from thirdparty.socks import socks + class Google(object): """ @@ -100,7 +102,7 @@ class Google(object): warnMsg += "to get error page information (%d)" % e.code logger.critical(warnMsg) return None - except (urllib2.URLError, httplib.error, socket.error, socket.timeout): + except (urllib2.URLError, httplib.error, socket.error, socket.timeout, socks.ProxyError): errMsg = "unable to connect to Google" raise SqlmapConnectionException(errMsg)