提交 0e2b49c8 编写于 作者: E Elias Dorneles

[MRG+1] Prevent empty warnings in case of certificate verification failures

[MRG+1] Prevent empty warnings in case of certificate verification failures
......@@ -44,7 +44,9 @@ try:
try:
verifyHostname(connection, self._hostnameASCII)
except VerificationError as e:
logger.warning(e)
logger.warning(
'Remote certificate is not valid for hostname "{}"; {}'.format(
self._hostnameASCII, e))
except ImportError:
# ImportError should not matter for older Twisted versions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册