diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/client.py | 2 |
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://".') |