mirror of https://github.com/scrapy/scrapy.git
[MRG+1] Prevent empty warnings in case of certificate verification failures
[MRG+1] Prevent empty warnings in case of certificate verification failures
This commit is contained in:
commit
0e2b49c8c2
|
|
@ -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