Merge pull request #3774 from aanand/fix-tls-version-error-message

Fix error message for unrecognised TLS version
This commit is contained in:
Joffrey F 2016-07-27 10:35:21 -07:00 committed by GitHub
commit 647f260b0a
1 changed files with 2 additions and 1 deletions

View File

@ -65,8 +65,9 @@ def get_tls_version(environment):
tls_attr_name = "PROTOCOL_{}".format(compose_tls_version) tls_attr_name = "PROTOCOL_{}".format(compose_tls_version)
if not hasattr(ssl, tls_attr_name): if not hasattr(ssl, tls_attr_name):
log.warn( log.warn(
'The {} protocol is unavailable. You may need to update your ' 'The "{}" protocol is unavailable. You may need to update your '
'version of Python or OpenSSL. Falling back to TLSv1 (default).' 'version of Python or OpenSSL. Falling back to TLSv1 (default).'
.format(compose_tls_version)
) )
return None return None