From 0f2519a3a0786a256753bd19488029e429943e55 Mon Sep 17 00:00:00 2001 From: David de Meij Date: Tue, 2 Aug 2022 10:50:51 +0200 Subject: [PATCH] Don't verify SSL certificate to avoid error --- srtm4/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtm4/download.py b/srtm4/download.py index 2d40655..ffdb9cb 100644 --- a/srtm4/download.py +++ b/srtm4/download.py @@ -59,7 +59,7 @@ def download(to_file, from_url): # Use a requests session with retry logic because the server at # SRTM_URL sometimes returns 503 responses when overloaded session = _requests_retry_session() - r = session.get(from_url, stream=True) + r = session.get(from_url, stream=True, verify=False) if not r.ok: raise ConnectionError( "Response code {} received for url {}".format(r.status_code, from_url)