Repository: climate Updated Branches: refs/heads/master 4388924ba -> 544bf05e7
CLIMATE-790 - SSL errors in the esgf example - the SSL error has been resolved. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/7d7c57d5 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/7d7c57d5 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/7d7c57d5 Branch: refs/heads/master Commit: 7d7c57d558087843b0f147ef43b2c033af125f00 Parents: 4388924 Author: huikyole <[email protected]> Authored: Sun May 8 00:49:23 2016 -0700 Committer: huikyole <[email protected]> Committed: Sun May 8 00:49:23 2016 -0700 ---------------------------------------------------------------------- examples/esgf_integration_example.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/7d7c57d5/examples/esgf_integration_example.py ---------------------------------------------------------------------- diff --git a/examples/esgf_integration_example.py b/examples/esgf_integration_example.py index a76d1f8..8914c8e 100644 --- a/examples/esgf_integration_example.py +++ b/examples/esgf_integration_example.py @@ -17,6 +17,10 @@ import ocw.data_source.esgf as esgf from getpass import getpass +import ssl + +if hasattr(ssl, '_create_unverified_context'): + ssl._create_default_https_context = ssl._create_unverified_context dataset_id = 'obs4MIPs.CNES.AVISO.zos.mon.v20110829|esgf-data.jpl.nasa.gov' variable = 'zosStderr'
