1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

ssl errors should show by default w/o -v

This commit is contained in:
Marcus Smith 2013-03-01 11:07:29 -08:00
parent ee3fb0250a
commit 50e2662bb4

View file

@ -492,7 +492,9 @@ class HTMLPage(object):
#ssl/certificate error
if ssl and hasattr(e, 'reason') and (isinstance(e.reason, ssl.SSLError) or isinstance(e.reason, CertificateError)):
desc = 'there was a problem confirming the ssl certificate %s' % e
log_meth = logger.info
log_meth = logger.notify
else:
log_meth = logger.info
if hasattr(e, 'reason') and isinstance(e.reason, socket.timeout):
desc = 'timed out'
level = 1