Fixing paypalapi to check if api_ca_certs is false.

This commit is contained in:
Samuel Clay 2015-05-26 12:34:52 -07:00
parent 0478ef0f1b
commit b46413a078
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ backend gunicorn
backend gunicorn_counts
balance roundrobin
option httpchk GET /_haproxychk
server gunicorndebug 127.0.0.1:8000 check inter 2000ms
server gunicorndebug 127.0.0.1:8000 check inter 600000ms
backend maintenance
option httpchk HEAD /maintenance HTTP/1.1\r\nHost:\ www

View file

@ -116,7 +116,7 @@ class PayPalConfig(object):
# Set the CA_CERTS location. This can either be a None, a bool, or a
# string path.
if kwargs.get('API_CA_CERTS'):
if 'API_CA_CERTS' in kwargs:
self.API_CA_CERTS = kwargs['API_CA_CERTS']
if isinstance(self.API_CA_CERTS, basestring) and not os.path.exists(self.API_CA_CERTS):