Skip to content

Commit 40cf5eb

Browse files
committed
Disabled SSL certificate validation for roadcurvature data
The roadcurvature source's SSL certificate has expired
1 parent eae7eca commit 40cf5eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/get-curve-map.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import json
55
import kml2geojson.main as k2g
66
import os
7+
import ssl
78
import urllib.request as req
89
import zipfile
910

@@ -15,7 +16,10 @@ def main():
1516
args = parser.parse_args()
1617

1718
print("Downloading %s file..." % args.kmz_url)
18-
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()
1923
print("Opening the KMZ file...")
2024
kmzFile = io.BytesIO(kmzData)
2125
z = zipfile.ZipFile(kmzFile)

0 commit comments

Comments
 (0)