diff options
-rw-r--r-- | docs/jsonschema_role.py | 3 | ||||
-rw-r--r-- | docs/requirements.txt | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/jsonschema_role.py b/docs/jsonschema_role.py index cee8d14..607f8de 100644 --- a/docs/jsonschema_role.py +++ b/docs/jsonschema_role.py @@ -8,6 +8,7 @@ try: except ImportError: import urllib.request as urllib +import certifi from lxml import html @@ -62,7 +63,7 @@ def fetch_or_load(spec_path): raise request = urllib.Request(VALIDATION_SPEC, headers=headers) - response = urllib.urlopen(request) + response = urllib.urlopen(request, cafile=certifi.where()) if response.code == 200: with open(spec_path, "w+b") as spec: diff --git a/docs/requirements.txt b/docs/requirements.txt index 5d7997a..eb3007a 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ +certifi lxml sphinx==1.6.7 sphinxcontrib-spelling |