mirror of https://github.com/docker/docker-py.git
Don't break if base_url == None and TLS is enabled
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
62d9964cc1
commit
6078040318
|
@ -45,7 +45,7 @@ class Client(
|
|||
timeout=constants.DEFAULT_TIMEOUT_SECONDS, tls=False):
|
||||
super(Client, self).__init__()
|
||||
|
||||
if tls and not base_url.startswith('https://'):
|
||||
if tls and (not base_url or not base_url.startswith('https://')):
|
||||
raise errors.TLSParameterError(
|
||||
'If using TLS, the base_url argument must begin with '
|
||||
'"https://".')
|
||||
|
|
Loading…
Reference in New Issue