Merge pull request #1549 from cygnusv/urlparse

Workaround for urlparse problem
pull/1542/head
David Núñez 2019-12-26 09:57:21 +00:00 committed by GitHub
commit a7920c4aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,14 @@ def parse_node_uri(uri: str):
else:
checksum_address = None # federated
#############################################
# Strange logic here to ensure https:// - possibly pursuant to https://bugs.python.org/msg179670
# It's not clear that there is any version of python 3.7+ that requires this, so we may
# be able to drop it in the near future.
if not uri.startswith("https://"):
uri = "https://" + uri
#############################################
parsed_uri = urlparse(uri)
if not parsed_uri.scheme: