We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae7eca commit 40cf5ebCopy full SHA for 40cf5eb
.github/scripts/get-curve-map.py
@@ -4,6 +4,7 @@
4
import json
5
import kml2geojson.main as k2g
6
import os
7
+import ssl
8
import urllib.request as req
9
import zipfile
10
@@ -15,7 +16,10 @@ def main():
15
16
args = parser.parse_args()
17
18
print("Downloading %s file..." % args.kmz_url)
- kmzData = req.urlopen(args.kmz_url).read()
19
+ sslCtx = ssl.create_default_context()
20
+ sslCtx.check_hostname = False
21
+ sslCtx.verify_mode = ssl.CERT_NONE
22
+ kmzData = req.urlopen(args.kmz_url, context=sslCtx).read()
23
print("Opening the KMZ file...")
24
kmzFile = io.BytesIO(kmzData)
25
z = zipfile.ZipFile(kmzFile)
0 commit comments