Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
scheduler, task_pool, task_proxy refactor
Browse files Browse the repository at this point in the history
Fix test broken by cylc#2271.
  • Loading branch information
matthewrmshin committed May 11, 2017
1 parent 362901e commit 4b83524
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/cylc/network/https/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ def _get_data_from_url_with_requests(self, http_request_items):
if "unknown protocol" in str(exc) and url.startswith("https:"):
# Server is using http rather than https, for some reason.
sys.stderr.write(WARNING_NO_HTTPS_SUPPORT.format(exc))
for http_request_item in http_request_items:
http_request_item['url'].replace("https:", "http:", 1)
return self._get_data_from_url_with_requests(
url.replace("https:", "http:", 1), json_data)
http_request_items)
if cylc.flags.debug:
import traceback
traceback.print_exc()
Expand Down Expand Up @@ -250,8 +252,10 @@ def _get_data_from_url_with_urllib2(self, http_request_items):
if "unknown protocol" in str(exc) and url.startswith("https:"):
# Server is using http rather than https, for some reason.
sys.stderr.write(WARNING_NO_HTTPS_SUPPORT.format(exc))
for http_request_item in http_request_items:
http_request_item['url'].replace("https:", "http:", 1)
return self._get_data_from_url_with_urllib2(
url.replace("https:", "http:", 1), orig_json_data)
http_request_items)
if cylc.flags.debug:
import traceback
traceback.print_exc()
Expand Down

0 comments on commit 4b83524

Please sign in to comment.