浏览代码

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

Fix error message for unrecognised TLS version
Joffrey F 9 年之前
父节点
当前提交
647f260b0a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compose/cli/command.py

+ 2 - 1
compose/cli/command.py

@@ -65,8 +65,9 @@ def get_tls_version(environment):
     tls_attr_name = "PROTOCOL_{}".format(compose_tls_version)
     if not hasattr(ssl, tls_attr_name):
         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).'
+            .format(compose_tls_version)
         )
         return None