From 22f8aad8b672d3e18e63d5df0b48cd128d8ace5a Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Wed, 8 Jun 2011 11:29:52 -0400 Subject: Fixed app engine SLLCertificateError catching --- python2/httplib2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python2') diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 1c27e00..fb090a9 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -933,6 +933,7 @@ try: from google.appengine.api.urlfetch import InvalidURLError from google.appengine.api.urlfetch import DownloadError from google.appengine.api.urlfetch import ResponseTooLargeError + from google.appengine.api.urlfetch import SSLCertificateError class ResponseDict(dict): @@ -959,6 +960,7 @@ try: self.response = None self.scheme = 'http' self.validate_certificate = not disable_certificate_validation + self.sock = True def request(self, method, url, body, headers): # Calculate the absolute URI, which fetch requires -- cgit v1.2.1