Skip to content

Commit 50404d3

Browse files
tmontesJulian
authored andcommitted
Docs now build successfully out of the box on macOS CPython.
1 parent 0254c80 commit 50404d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx_json_schema_spec/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
except ImportError:
99
import urllib.request as urllib
1010

11+
import certifi
1112
from lxml import html
1213

1314

@@ -62,7 +63,7 @@ def fetch_or_load(spec_path):
6263
raise
6364

6465
request = urllib.Request(VALIDATION_SPEC, headers=headers)
65-
response = urllib.urlopen(request)
66+
response = urllib.urlopen(request, cafile=certifi.where())
6667

6768
if response.code == 200:
6869
with open(spec_path, "w+b") as spec:

0 commit comments

Comments
 (0)