summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-01-08 16:41:15 -0800
committerJoffrey F <joffrey@docker.com>2016-01-08 16:41:15 -0800
commit6078040318547ca7a678b54cd420e034c21171ab (patch)
tree3ad0ebbd651d5417d57387a8868d1b660de18ecf
parent62d9964cc1881f6f3cd021594cd40fd80a8fc855 (diff)
downloaddocker-py-base_url_none.tar.gz
Don't break if base_url == None and TLS is enabledbase_url_none
Signed-off-by: Joffrey F <joffrey@docker.com>
-rw-r--r--docker/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/client.py b/docker/client.py
index d339f3b..e73adb8 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -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://".')