From 657d71119b04326b21a494ee038dc29ce3abfda9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 7 Oct 2015 09:22:11 +0200 Subject: [PATCH] Fixes #1453 --- lib/utils/google.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/google.py b/lib/utils/google.py index 0fec576e6..e32278972 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -97,9 +97,9 @@ class Google(object): except urllib2.HTTPError, e: try: page = e.read() - except socket.timeout: - warnMsg = "connection timed out while trying " - warnMsg += "to get error page information (%d)" % e.code + except Exception, ex: + warnMsg = "problem occurred while trying to get " + warnMsg += "an error page information (%s)" % getSafeExString(ex) logger.critical(warnMsg) return None except (urllib2.URLError, httplib.error, socket.error, socket.timeout, socks.ProxyError):