mirror of https://github.com/scrapy/scrapy.git
Merge pull request #1983 from redapple/backport-1.1-pr1979
[backport][1.1] Prevent empty warnings in case of certificate verification failures (PR #1979)
This commit is contained in:
commit
1e7b216f2f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue