We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d9964 commit 6078040Copy full SHA for 6078040
docker/client.py
@@ -45,7 +45,7 @@ def __init__(self, base_url=None, version=None,
45
timeout=constants.DEFAULT_TIMEOUT_SECONDS, tls=False):
46
super(Client, self).__init__()
47
48
- if tls and not base_url.startswith('https://'):
+ if tls and (not base_url or not base_url.startswith('https://')):
49
raise errors.TLSParameterError(
50
'If using TLS, the base_url argument must begin with '
51
'"https://".')
0 commit comments