Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Commit

Permalink
config verify by default true
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun Li committed May 3, 2019
1 parent 36d9abf commit 1583846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions quandl/api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ApiConfig:
retry_backoff_factor = 0.5
max_wait_between_retries = 8
retry_status_codes = [429] + list(range(500, 512))
verify = True


def save_key(apikey, filename=None):
Expand Down
2 changes: 1 addition & 1 deletion quandl/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def execute_request(cls, http_verb, url, **options):
session = cls.get_session()

try:
response = session.request(method=http_verb, url=url, **options)
response = session.request(method=http_verb, url=url, verify=ApiConfig.verify, **options)
if response.status_code < 200 or response.status_code >= 300:
cls.handle_api_error(response)
else:
Expand Down

0 comments on commit 1583846

Please sign in to comment.